Skip to content

Commit

Permalink
empty overlay list is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed May 6, 2022
1 parent f58d753 commit 26cf64a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auxmos"
version = "1.0.2"
version = "1.0.3"
authors = ["Putnam <putnam3145@gmail.com>"]
edition = "2021"

Expand Down
4 changes: 0 additions & 4 deletions src/turfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,6 @@ pub fn update_visuals(src: &Value) -> DMResult {
})
})?;

if overlay_types.len() == 0 {
return Ok(Value::null());
}

src.call("set_visuals", &[&Value::from(overlay_types)])
}
}
Expand Down

0 comments on commit 26cf64a

Please sign in to comment.