Skip to content

Commit

Permalink
Merge pull request #5 from HudsonAlpha/io_bug_fix
Browse files Browse the repository at this point in the history
got the bools wrong on a file check
  • Loading branch information
holtjma authored Oct 12, 2021
2 parents 1b54ae0 + 7978b8d commit 5123a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastleng"
version = "0.1.0"
version = "0.1.1"
authors = ["holtjma <jholt@hudsonalpha.org>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn main() {
}
};
}
if length_fn.is_empty() {
if !length_fn.is_empty() {
match File::create(&length_fn) {
Ok(file) => file,
Err(e) => {
Expand Down Expand Up @@ -123,7 +123,7 @@ fn main() {
serde_json::to_writer_pretty(out_file, &length_metrics).unwrap();
}

if length_fn.is_empty() {
if !length_fn.is_empty() {
info!("Saving length counts to file: {:?}", length_fn);
let out_file = match File::create(&length_fn) {
Ok(file) => file,
Expand Down

0 comments on commit 5123a5e

Please sign in to comment.