Skip to content

Commit

Permalink
863 fixing code format
Browse files Browse the repository at this point in the history
  • Loading branch information
fahernandez authored and achew22 committed Feb 14, 2019
1 parent 657b8ac commit b73f418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,9 +1238,9 @@ func updateSwaggerDataFromComments(swaggerObject interface{}, comment string, ty
}
// overrides the schema value only if it's empty
// keep the comment precedence when updating the package definition
if descriptionValue.Len() == 0 || typeName == "Package" {
if descriptionValue.Len() == 0 || typeName == "Package" {
descriptionValue.Set(reflect.ValueOf(description))
}
}
}
return nil
}
Expand Down

0 comments on commit b73f418

Please sign in to comment.