Commit 5d9d7c49 authored by Ash McKenzie's avatar Ash McKenzie

Geo: Formatting fix for geo:status rake task

When last_cursor_event_date was't available, this resulted in a missing
newline which messed up the following line.
parent f3c7ab45
---
title: 'Geo: Formatting fix for geo:status rake task'
merge_request: 6020
author:
type: fixed
...@@ -266,7 +266,8 @@ namespace :geo do ...@@ -266,7 +266,8 @@ namespace :geo do
if cursor_last_event_id if cursor_last_event_id
print cursor_last_event_id print cursor_last_event_id
last_cursor_event_date = Geo::EventLog.find_by(id: cursor_last_event_id)&.created_at last_cursor_event_date = Geo::EventLog.find_by(id: cursor_last_event_id)&.created_at
puts " (#{time_ago_in_words(last_cursor_event_date)} ago)" if last_cursor_event_date print " (#{time_ago_in_words(last_cursor_event_date)} ago)" if last_cursor_event_date
puts
else else
puts 'N/A' puts 'N/A'
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment