summaryrefslogtreecommitdiff
path: root/pkg/util
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-11 14:15:26 +0100
committerMatthew Heon <mheon@redhat.com>2021-02-18 11:09:40 -0500
commit3bddeebf930efb872b99966df5553e0baf81834a (patch)
treeec2f40a9dd4d79f4fab75d35f5094121c9c5b7a0 /pkg/util
parentc50d969a0e79161c9d5d6f7933009253b067233e (diff)
downloadpodman-3bddeebf930efb872b99966df5553e0baf81834a.tar.gz
podman-3bddeebf930efb872b99966df5553e0baf81834a.tar.bz2
podman-3bddeebf930efb872b99966df5553e0baf81834a.zip
Enable stylecheck linter
Use the stylecheck linter and fix the reported problems. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de> <MH: Fix cherry-pick conflict> Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/util')
-rw-r--r--pkg/util/utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/util/utils.go b/pkg/util/utils.go
index e0f631eb4..901a482f6 100644
--- a/pkg/util/utils.go
+++ b/pkg/util/utils.go
@@ -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