mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Fix linter problems
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
762f462d80
commit
d2fece3311
3 changed files with 3 additions and 57 deletions
|
|
@ -45,7 +45,7 @@ var (
|
|||
// ErrNotImplemented is returned when a backend doesn't implement
|
||||
// an action
|
||||
ErrNotImplemented = errors.New("not implemented")
|
||||
// ErrParsingFailed
|
||||
// ErrParsingFailed is returned when a string cannot be parsed
|
||||
ErrParsingFailed = errors.New("parsing failed")
|
||||
)
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ func IsErrNotImplemented(err error) bool {
|
|||
return errors.Is(err, ErrNotImplemented)
|
||||
}
|
||||
|
||||
// IsErrParseFail returns true if the unwrapped error is ErrParsingFailed
|
||||
// IsErrParsingFailed returns true if the unwrapped error is ErrParsingFailed
|
||||
func IsErrParsingFailed(err error) bool {
|
||||
return errors.Is(err, ErrParsingFailed)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue