Skip to content

Commit 2c8dd61

Browse files
authored
Fixed missing function (#35)
1 parent 6d464e5 commit 2c8dd61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/src/objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ impl<'a> Value {
542542
Value::Bool(v) => *v,
543543
Value::Null => false,
544544
Value::Duration(v) => v.num_nanoseconds().map(|n| n != 0).unwrap_or(false),
545-
Value::Timestamp(v) => v.timestamp_nanos_opt() > Some(0),
545+
Value::Timestamp(v) => v.timestamp_nanos() > 0,
546546
Value::Function(_, _) => false,
547547
}
548548
}

0 commit comments

Comments
 (0)