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
|
|
@ -515,7 +515,7 @@ func (h *apiHandlers) GetComposeStatus(ctx echo.Context, id string) error {
|
|||
return HTTPError(ErrorMalformedOSBuildJobResult)
|
||||
}
|
||||
|
||||
if result.JobError != nil && result.JobError.HasDependencyError() {
|
||||
if result.JobError != nil && result.JobError.IsDependencyError() {
|
||||
err = h.server.workers.CheckBuildDependencies(deps[0], result.JobError)
|
||||
if err != nil {
|
||||
return HTTPError(ErrorGettingBuildDependencyStatus)
|
||||
|
|
@ -606,7 +606,7 @@ func (h *apiHandlers) GetComposeStatus(ctx echo.Context, id string) error {
|
|||
if err != nil {
|
||||
return HTTPError(ErrorMalformedOSBuildJobResult)
|
||||
}
|
||||
if buildJobResult.JobError != nil && buildJobResult.JobError.HasDependencyError() {
|
||||
if buildJobResult.JobError != nil && buildJobResult.JobError.IsDependencyError() {
|
||||
err = h.server.workers.CheckBuildDependencies(buildDeps[1], buildJobResult.JobError)
|
||||
if err != nil {
|
||||
return HTTPError(ErrorGettingBuildDependencyStatus)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue