lib/gollum-lib.rb in gitlab-gollum-lib-4.2.7.9 vs lib/gollum-lib.rb in gitlab-gollum-lib-4.2.7.10.gitlab.1

- old
+ new

@@ -3,16 +3,14 @@ require 'digest/md5' require 'digest/sha1' require 'ostruct' require 'pathname' -DEFAULT_ADAPTER = if RUBY_PLATFORM == 'java' - 'rjgit_adapter' -elsif ENV['GOLLUM_ADAPTER'] == 'grit' - 'grit_adapter' -else - 'rugged_adapter' -end +DEFAULT_ADAPTER = if ENV['GOLLUM_ADAPTER'] == 'grit' + 'grit_adapter' + else + 'rugged_adapter' + end if defined?(Gollum::GIT_ADAPTER) require "#{Gollum::GIT_ADAPTER.downcase}_adapter" else require DEFAULT_ADAPTER