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 22, 2022
1 parent 1f7546c commit 5906cf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prost-build/src/lib.rs
Expand Up @@ -869,6 +869,10 @@ impl Config {

let modules = self.generate(requests)?;
for (module, content) in &modules {
if content.is_empty() {
continue;
}

let file_name = file_names
.get(module)
.expect("every module should have a filename");
Expand Down

0 comments on commit 5906cf7

Please sign in to comment.