10236: Merge branch 'master' into 10236-disable-event-listening
[arvados.git] / services / api / app / models / commit.rb
index e4b789e099abb24c3618cd290d81a3200b597d42..f74e2fedc7396335e6ff537bc2e882aa5da3e177 100644 (file)
@@ -72,7 +72,7 @@ class Commit < ActiveRecord::Base
     # If string is invalid, nothing else to do
     if !git_check_ref_format(max_hash)
       logger.warn "ref returned by `GIT_DIR=#{gitdir} #{git_max_hash_cmd}` was invalid for max_hash: #{max_hash}"
-      return[]
+      return []
     end
 
     resolved_exclude = nil