Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <[email protected]>
  • Loading branch information
shohamazon committed Aug 11, 2024
1 parent 0301a96 commit 3e1c78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ pub(crate) fn convert_to_expected_type(
fn contains_running_script(value: &Value) -> bool {
match value {
Value::Array(inner_array) => inner_array.get(1) != Some(&Value::Nil),
Value::Map(inner_map) => inner_map.get(0).map(|(_, v)| v) != Some(&Value::Nil),
Value::Map(inner_map) => inner_map.first().map(|(_, v)| v) != Some(&Value::Nil),
_ => false,
}
}
Expand Down

0 comments on commit 3e1c78b

Please sign in to comment.