fix boolean operators precedence (#4158)

This commit is contained in:
Massimiliano Pippi
2019-10-15 15:03:34 +02:00
committed by William Cheng
parent dd08ea7a6b
commit 756984adc9

View File

@@ -505,7 +505,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
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;
}