Skip to content

Commit

Permalink
lint: golangci: merge lines to check if error still appears
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Oct 17, 2022
1 parent ff02915 commit 19b1026
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openapi3edit/operations_references_fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ func SpecOperationsFixResponseReferences(spec *openapi3.Spec) []*openapi3.Operat
resRefOrig := resRef.Ref
resRef.Ref = oas3BasePathComponentsSchemas + m[1]
om := openapi3.OperationToMeta(path, method, op)
om.MetaNotes = append(om.MetaNotes,
fmt.Sprintf("E_BAD_RESPONSE_REF_OAS2_DEF [%s] type[%s]", resCode, resRefOrig))
om.MetaNotes = append(om.MetaNotes, fmt.Sprintf("E_BAD_RESPONSE_REF_OAS2_DEF [%s] type[%s]", resCode, resRefOrig))
errorOperations = append(errorOperations, &om)
}
}
Expand Down

0 comments on commit 19b1026

Please sign in to comment.