renamed variable

This commit is contained in:
Guo Huang 2016-04-27 14:33:04 -07:00
parent 2f8a8c05e0
commit 3540c44e71

View File

@ -378,9 +378,9 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
// if the return type is not primitive, import encoding/json // if the return type is not primitive, import encoding/json
for (CodegenOperation operation : operations) { for (CodegenOperation operation : operations) {
if(operation.returnBaseType != null && needToImport(operation.returnBaseType)) { if(operation.returnBaseType != null && needToImport(operation.returnBaseType)) {
Map<String, String> newImportMap2 = new HashMap<String, String>(); Map<String, String> customImport = new HashMap<String, String>();
newImportMap2.put("import", "encoding/json"); customImport.put("import", "encoding/json");
imports.add(newImportMap2); imports.add(customImport);
break; //just need to import once break; //just need to import once
} }
} }