Skip to content

Commit 88b5993

Browse files
committed
fix empty authors case
1 parent 52573ce commit 88b5993

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,10 @@ fn add_component_metadata(package: &Package, wasm: &[u8]) -> Result<Vec<u8>> {
10321032
.to_string(),
10331033
)],
10341034
sdk: vec![],
1035-
author: Some(wasm_metadata::Author::new(package.authors.join(","))),
1035+
author: match package.authors.len() {
1036+
0 => None,
1037+
_ => Some(wasm_metadata::Author::new(package.authors.join(","))),
1038+
},
10361039
description: package
10371040
.description
10381041
.as_ref()

0 commit comments

Comments
 (0)