Skip to content

ci: unbreak linter#3308

Merged
AkihiroSuda merged 2 commits intomoby:masterfrom
tonistiigi:ci-fmt-err
Nov 24, 2022
Merged

ci: unbreak linter#3308
AkihiroSuda merged 2 commits intomoby:masterfrom
tonistiigi:ci-fmt-err

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
args := clicontext.Args()
if len(args) == 0 {
return fmt.Errorf("build ref must be specified")
return errors.Errorf("build ref must be specified")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is fmt.Errorf deprecated?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw errors.New seems suffice

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AkihiroSuda AkihiroSuda merged commit e8dac6c into moby:master Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants