-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use errors.New() to output the error message and fix some typos #2195
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2195 +/- ##
==========================================
- Coverage 61.73% 51.88% -9.86%
==========================================
Files 125 119 -6
Lines 11450 11200 -250
==========================================
- Hits 7069 5811 -1258
- Misses 3495 4662 +1167
+ Partials 886 727 -159
Continue to review full report at Codecov.
|
configuration/configuration.go
Outdated
@@ -474,7 +475,7 @@ func (storage Storage) MarshalYAML() (interface{}, error) { | |||
// Auth defines the configuration for registry authorization. | |||
type Auth map[string]Parameters | |||
|
|||
// Type returns the auth type, such as htpasswd or token | |||
// Type returns the auth type, such as passwd or token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a typo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I'm so sorry! I will update it.
4f97629
to
18d21dc
Compare
errors.go
Outdated
@@ -77,7 +77,7 @@ func (err ErrManifestUnknownRevision) Error() string { | |||
type ErrManifestUnverified struct{} | |||
|
|||
func (ErrManifestUnverified) Error() string { | |||
return fmt.Sprintf("unverified manifest") | |||
return fmt.Sprint("unverified manifest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just return "unverified manifest"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, the PR has updated. @dmcgowan
Signed-off-by: fate-grand-order <[email protected]>
18d21dc
to
6a8e2ca
Compare
LGTM |
Use errors.New() directly to output the error message and fix some typos I found.
Signed-off-by: fate-grand-order [email protected]