Skip to content

Commit

Permalink
🚨 Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Interfiber committed Dec 13, 2021
1 parent 45c190e commit aeca917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pakr/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde_json::json;
pub fn get_component_json_from_info(info: &mut serde_json::Map<String, serde_json::Value>) -> serde_json::Value {
let script_folder_value = info.get("$scriptsFolder").unwrap_or(&serde_json::Value::Null);
let mut result = String::from("");
println!("Preventing compiler warning: value of result is {}", result);
if script_folder_value == &serde_json::Value::Null {
result = "null".to_string();
} else {
Expand Down

0 comments on commit aeca917

Please sign in to comment.