Skip to content

Commit

Permalink
fix boolean operators precedence (#4158)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored and wing328 committed Oct 15, 2019
1 parent dd08ea7 commit 756984a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public Map<String, Object> postProcessModels(Map<String, Object> objs) {
CodegenModel model = (CodegenModel) v;
for (CodegenProperty param : model.vars) {
if (!addedTimeImport
&& "time.Time".equals(param.dataType) || ("[]time.Time".equals(param.dataType))) {
&& ("time.Time".equals(param.dataType) || ("[]time.Time".equals(param.dataType)))) {
imports.add(createMapping("import", "time"));
addedTimeImport = true;
}
Expand Down

0 comments on commit 756984a

Please sign in to comment.