Skip to content

linting: do not capitalize errors#75

Merged
samuelkarp merged 3 commits intomoby:masterfrom
thaJeztah:fix_linting
Aug 12, 2021
Merged

linting: do not capitalize errors#75
samuelkarp merged 3 commits intomoby:masterfrom
thaJeztah:fix_linting

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

No description provided.

Also fix `major:minor` being swapped in an error message

Signed-off-by: Sebastiaan van Stijn <[email protected]>
mm := strings.Split(fields[2], ":")
if len(mm) != 2 {
return nil, fmt.Errorf("Parsing '%s' failed: unexpected minor:major pair %s", text, mm)
return nil, fmt.Errorf("parsing '%s' failed: unexpected major:minor pair %s", text, mm)
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.

Also fixed the error message here, which had "major" and "minor" swapped

@thaJeztah
Copy link
Copy Markdown
Member Author

@kolyshkin @tianon ptal 🤗

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

LGTM

@samuelkarp samuelkarp merged commit 1c371e4 into moby:master Aug 12, 2021
@thaJeztah thaJeztah deleted the fix_linting branch August 12, 2021 23:04
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.

3 participants