Skip to content

Commit

Permalink
Fix golangci-lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Sep 11, 2024
1 parent aba2057 commit 9126a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ linters:
- errorlint
- exhaustive
#- exhaustruct
- exportloopref
- copyloopvar
- forbidigo
- forcetypeassert
#- funlen
Expand Down
4 changes: 2 additions & 2 deletions gosmee/hook_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (r *replayOpts) listHooks(ctx context.Context) error {
return fmt.Errorf("cannot list hooks: %w", err)
}

fmt.Fprintf(os.Stdout, ansi.Color(fmt.Sprintf("%-20s %-20s %s\n", "ID", "Name", "URL"), "cyan+b")) // nolint:staticcheck
fmt.Fprint(os.Stdout, ansi.Color(fmt.Sprintf("%-20s %-20s %s\n", "ID", "Name", "URL"), "cyan+b")) // nolint:staticcheck
for _, h := range hooks {
url := ""
if _url, here := h.Config["url"]; here {
Expand All @@ -37,7 +37,7 @@ func (r *replayOpts) listDeliveries(ctx context.Context, hookID int64) error {
if deliveries, _, err = r.ghop.ListHookDeliveries(ctx, r.org, r.repo, hookID, opt); err != nil {
return fmt.Errorf("cannot list deliveries: %w", err)
}
fmt.Fprintf(os.Stdout, ansi.Color(fmt.Sprintf("%-12s %-12s %s\n", "ID", "Event", "Delivered At"), "cyan+b")) // nolint:staticcheck
fmt.Fprint(os.Stdout, ansi.Color(fmt.Sprintf("%-12s %-12s %s\n", "ID", "Event", "Delivered At"), "cyan+b")) // nolint:staticcheck
for _, d := range deliveries {
fmt.Fprintf(os.Stdout, "%-12d %-12s %s\n", d.GetID(), d.GetEvent(), d.GetDeliveredAt().Format(userTSFormat))
}
Expand Down

0 comments on commit 9126a6c

Please sign in to comment.