Skip to content

Commit 89b6417

Browse files
Merge pull request #18 from thunderstore-io/schema-fixes
Fix 0-length ecosystem_schema files created by ser failures
2 parents e01593b + 98056de commit 89b6417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/ecosystem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ pub async fn get_schema() -> Result<EcosystemSchema, Error> {
1515

1616
Ok(serde_json::from_reader(reader).unwrap())
1717
} else {
18-
let schema_file = File::create(&local_schema)?;
1918
let schema = ecosystem::get_schema().await?;
2019

20+
let schema_file = File::create(&local_schema)?;
2121
let schema_writer = BufWriter::new(&schema_file);
2222
serde_json::to_writer_pretty(schema_writer, &schema).unwrap();
2323

0 commit comments

Comments
 (0)