Skip to content

Commit

Permalink
refactor: raml08: reduce complexity of function
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Oct 19, 2022
1 parent 72e4c66 commit 90cc333
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions raml08/raml08openapi3/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ func msaPaths(basePath string, msa map[string]any, omSet *openapi3edit.Operation
pathOms, err := operationMoresFromPathItem(basePath, msa)
if err != nil {
return err
}
if len(pathOms) > 0 {
} else if len(pathOms) > 0 {
omSet.OperationMores = append(omSet.OperationMores, pathOms...)
}
}
Expand Down

0 comments on commit 90cc333

Please sign in to comment.