From 30d61e98935ba0b3125d88a58c114de73e0bb73e Mon Sep 17 00:00:00 2001 From: Cyril David Date: Tue, 26 Jan 2021 14:46:26 -0800 Subject: [PATCH] Lint / tests --- internal/display/display_test.go | 2 +- internal/display/logs.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/display/display_test.go b/internal/display/display_test.go index f3d49c52d..8fc70df39 100644 --- a/internal/display/display_test.go +++ b/internal/display/display_test.go @@ -13,7 +13,7 @@ func TestTimeAgo(t *testing.T) { ts time.Time want string }{ - {t0, "a minute ago"}, + {t0, "0 seconds ago"}, {t0.Add(-2 * time.Minute), "2 minutes ago"}, {t0.Add(-119 * time.Minute), "an hour ago"}, {t0.Add(-3 * time.Hour), "3 hours ago"}, diff --git a/internal/display/logs.go b/internal/display/logs.go index cb6bbb2cd..447346416 100644 --- a/internal/display/logs.go +++ b/internal/display/logs.go @@ -10,7 +10,6 @@ import ( ) const ( - logTimeFormat = "2006-01-02T15:04:05+00:00" notApplicable = "N/A" ) @@ -45,8 +44,6 @@ func (v *logView) getConnection() string { } else { return notApplicable } - - return notApplicable } func (v *logView) AsTableRow() []string {