about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-07-25 21:54:12 +0200
committerOndřej Hruška <ondra@ondrovo.com>2017-07-25 21:54:12 +0200
commitb7cf758fbed204f117350bc8636fc3d610f60eb4 (patch)
treed224a330ed668f5fc58d1ade41d29f9692d77c37 /app/presenters
parent7e5691804d4f0019a89b8b8a3dad532bc9d940ea (diff)
Fix JS errors and add back commit hash
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/instance_presenter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 19bedcc21..4de6b5e0d 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -35,9 +35,9 @@ class InstancePresenter
   def commit_hash
     current_release_file = Pathname.new('CURRENT_RELEASE').expand_path
     if current_release_file.file?
-        IO.read(current_release_file)
+      IO.read(current_release_file).strip!
     else
-        ""
+      ''
     end
   end
 end