worker: rename HasDependencyError() -> IsDependencyError()
Rename the `HasDependencyError()` method to `IsDependencyError()` to better express what it does.
This commit is contained in:
parent
cc1ff1ee1b
commit
d9e4889866
3 changed files with 5 additions and 4 deletions
|
|
@ -83,7 +83,8 @@ func GetStatusCode(err *Error) StatusCode {
|
|||
}
|
||||
}
|
||||
|
||||
func (e *Error) HasDependencyError() bool {
|
||||
// IsDependencyError returns true if the error means that a dependency of a job failed
|
||||
func (e *Error) IsDependencyError() bool {
|
||||
switch e.ID {
|
||||
case ErrorDepsolveDependency:
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue