Enable stylecheck linter

Use the stylecheck linter and fix the reported problems.

[NO TESTS NEEDED]

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
Paul Holzinger
2021-02-11 14:15:26 +01:00
parent afe4ce6b1c
commit ef2fc90f2d
14 changed files with 40 additions and 38 deletions

View File

@ -530,9 +530,9 @@ func ParseInputTime(inputTime string) (time.Time, error) {
}
}
unix_timestamp, err := strconv.ParseInt(inputTime, 10, 64)
unixTimestamp, err := strconv.ParseInt(inputTime, 10, 64)
if err == nil {
return time.Unix(unix_timestamp, 0), nil
return time.Unix(unixTimestamp, 0), nil
}
// input might be a duration