Commit 6074aaa9 authored by ming's avatar ming

not empty

parent 9bfed46c
......@@ -3478,7 +3478,7 @@ void Generator::GenerateFile(const GeneratorOptions& options,
}
// if provided is empty, do not export anything
if (options.import_style == GeneratorOptions::kImportCommonJs && provided.size()) {
if (options.import_style == GeneratorOptions::kImportCommonJs && !provided.empty()) {
printer->Print("goog.object.extend(exports, $package$);\n",
"package", GetFilePath(options, file));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment