Skip to content

Commit

Permalink
typofix
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Jul 6, 2023
1 parent 050084a commit d448065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func Main() {
cleanupCmd := pbmCmd.Command("cleanup", "Delete Backups and PITR chunks")
cleanupOpts := cleanupOptions{}
cleanupCmd.Flag("older-than", fmt.Sprintf("Delete older than date/time in format %s or %s", datetimeFormat, dateFormat)).StringVar(&cleanupOpts.olderThan)
cleanupCmd.Flag("type", fmt.Sprintf("Backup type filter")).Short('t').
cleanupCmd.Flag("type", fmt.Sprint("Backup type filter")).Short('t').

Check failure on line 162 in cli/cli.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cli/cli.go#L162

S1039: unnecessary use of fmt.Sprint (gosimple)
Raw output
cli/cli.go:162:26: S1039: unnecessary use of fmt.Sprint (gosimple)
	cleanupCmd.Flag("type", fmt.Sprint("Backup type filter")).Short('t').
	                        ^
EnumVar(&cleanupOpts.bcpType,
string(pbm.PhysicalBackup),
string(pbm.LogicalBackup),
Expand Down

0 comments on commit d448065

Please sign in to comment.