Skip to content

Commit

Permalink
skip empty content
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfenjin committed Mar 11, 2022
1 parent 73dea0e commit a8cd1ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prost-build/src/lib.rs
Expand Up @@ -849,6 +849,9 @@ impl Config {

let modules = self.generate(file_descriptor_set.file)?;
for (module, content) in &modules {
if content.is_empty() {
continue;
}
let mut filename = if module.is_empty() {
self.default_package_filename.clone()
} else {
Expand Down

0 comments on commit a8cd1ec

Please sign in to comment.