Skip to content

Commit ec67482

Browse files
committed
make linter happy
Signed-off-by: Grant Linville <[email protected]>
1 parent 0a21b83 commit ec67482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/credential.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (c *Credential) Run(_ *cobra.Command, _ []string) error {
9393
expires := "never"
9494
if cred.ExpiresAt != nil {
9595
if !cred.IsExpired() {
96-
expires = cred.ExpiresAt.Sub(time.Now()).Truncate(time.Second).String()
96+
expires = time.Until(*cred.ExpiresAt).Truncate(time.Second).String()
9797
} else {
9898
expires = "expired"
9999
}

0 commit comments

Comments
 (0)