lint: fix linting issues

This commit is contained in:
Romain Bertrand 2025-12-08 10:00:50 +01:00
parent 36891e06f4
commit 1d94431825
4 changed files with 12 additions and 14 deletions

View file

@ -127,7 +127,7 @@ func runRepoList(cmd *cobra.Command, args []string) error {
}
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
fmt.Fprintf(w, "NAME\tVISIBILITY\tDESCRIPTION\n")
_, _ = fmt.Fprintf(w, "NAME\tVISIBILITY\tDESCRIPTION\n")
for _, repo := range repos {
visibility := "public"
if repo.Private {
@ -137,9 +137,9 @@ func runRepoList(cmd *cobra.Command, args []string) error {
if len(desc) > 50 {
desc = desc[:47] + "..."
}
fmt.Fprintf(w, "%s/%s\t%s\t%s\n", repo.Owner.UserName, repo.Name, visibility, desc)
_, _ = fmt.Fprintf(w, "%s/%s\t%s\t%s\n", repo.Owner.UserName, repo.Name, visibility, desc)
}
w.Flush()
_ = w.Flush()
return nil
}