Skip to content

Commit

Permalink
use is_err()
Browse files Browse the repository at this point in the history
  • Loading branch information
erubboli committed Sep 11, 2024
1 parent c7f24d6 commit d11cfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-gui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
use std::fs;
use winres::WindowsResource;

if !fs::metadata("app.manifest").is_ok() {
if fs::metadata("app.manifest").is_err() {
return Err(format!("app.manifest not found in: {:?}", env::current_dir()?).into());
}

Expand Down

0 comments on commit d11cfad

Please sign in to comment.