Skip to content

Commit

Permalink
Fixed missing function (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc authored Feb 17, 2024
1 parent 6d464e5 commit 2c8dd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ impl<'a> Value {
Value::Bool(v) => *v,
Value::Null => false,
Value::Duration(v) => v.num_nanoseconds().map(|n| n != 0).unwrap_or(false),
Value::Timestamp(v) => v.timestamp_nanos_opt() > Some(0),
Value::Timestamp(v) => v.timestamp_nanos() > 0,
Value::Function(_, _) => false,
}
}
Expand Down

0 comments on commit 2c8dd61

Please sign in to comment.