Skip to content

Commit 17c38ba

Browse files
author
Andrew
committed
clippy fix
1 parent a7ae36f commit 17c38ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ fn save_adapted_resources_lookup_table(lookup_table: &HashMap<String, String>)
553553
let path = std::path::Path::new(&file_path);
554554
if let Some(prefix) = path.parent() {
555555
if fs::create_dir_all(prefix).is_ok() {
556-
if !fs::write(file_path.clone(), lookup_table_json).is_ok() {
556+
if fs::write(file_path.clone(), lookup_table_json).is_err() {
557557
debug!("Unable to write lookup_table file {file_path:?}");
558558
}
559559
} else {

0 commit comments

Comments
 (0)