Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein committed Nov 25, 2024
1 parent 690c558 commit b59721d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/kes/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ func describeKeyCmd(args []string) {
}

year, month, day := info.CreatedAt.Date()
hour, min, sec := info.CreatedAt.Clock()
hour, minute, sec := info.CreatedAt.Clock()

buf := &strings.Builder{}
fmt.Fprintf(buf, "%-11s %s\n", "Name", info.Name)
fmt.Fprintf(buf, "%-11s %s\n", "Algorithm", info.Algorithm)
fmt.Fprintf(buf, "%-11s %04d-%02d-%02d %02d:%02d:%02d\n", "Date", year, month, day, hour, min, sec)
fmt.Fprintf(buf, "%-11s %04d-%02d-%02d %02d:%02d:%02d\n", "Date", year, month, day, hour, minute, sec)
fmt.Fprintf(buf, "%-11s %s", "Owner", info.CreatedBy)
fmt.Print(buf)
}
Expand Down
8 changes: 4 additions & 4 deletions cmd/kes/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ func infoPolicyCmd(args []string) {
fmt.Println(faint.Render(fmt.Sprintf("%-11s", "Name")), policyStyle.Render(name))
if !info.CreatedAt.IsZero() {
year, month, day := info.CreatedAt.Local().Date()
hour, min, sec := info.CreatedAt.Local().Clock()
hour, minute, sec := info.CreatedAt.Local().Clock()
fmt.Println(
faint.Render(fmt.Sprintf("%-11s", "Date")),
fmt.Sprintf("%04d-%02d-%02d %02d:%02d:%02d", year, month, day, hour, min, sec),
fmt.Sprintf("%04d-%02d-%02d %02d:%02d:%02d", year, month, day, hour, minute, sec),
)
}
if !info.CreatedBy.IsUnknown() {
Expand Down Expand Up @@ -335,8 +335,8 @@ func showPolicyCmd(args []string) {
header := tui.NewStyle().Bold(true).Foreground(Cyan)
if !policy.CreatedAt.IsZero() {
year, month, day := policy.CreatedAt.Local().Date()
hour, min, sec := policy.CreatedAt.Local().Clock()
fmt.Printf("\n%s %04d-%02d-%02d %02d:%02d:%02d\n", header.Render("Created at:"), year, month, day, hour, min, sec)
hour, minute, sec := policy.CreatedAt.Local().Clock()
fmt.Printf("\n%s %04d-%02d-%02d %02d:%02d:%02d\n", header.Render("Created at:"), year, month, day, hour, minute, sec)
}
if !policy.CreatedBy.IsUnknown() {
fmt.Println(header.Render("Created by:"), policy.CreatedBy)
Expand Down

0 comments on commit b59721d

Please sign in to comment.