Skip to content

Commit

Permalink
Lint / tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Jan 26, 2021
1 parent bdbb946 commit 30d61e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion internal/display/display_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
3 changes: 0 additions & 3 deletions internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
)

const (
logTimeFormat = "2006-01-02T15:04:05+00:00"
notApplicable = "N/A"
)

Expand Down Expand Up @@ -45,8 +44,6 @@ func (v *logView) getConnection() string {
} else {
return notApplicable
}

return notApplicable
}

func (v *logView) AsTableRow() []string {
Expand Down

0 comments on commit 30d61e9

Please sign in to comment.