Skip to content

Commit 55a5041

Browse files
committed
fix: clippy
1 parent 951328b commit 55a5041

File tree

1 file changed

+1
-1
lines changed
  • runtime/src/ext/local_storage

1 file changed

+1
-1
lines changed

runtime/src/ext/local_storage/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl LocalStorageExt {
131131
args: ArgumentsList,
132132
gc: GcScope<'gc, '_>,
133133
) -> JsResult<'gc, Value<'gc>> {
134-
let persistent = if args.len() > 0 {
134+
let persistent = if !args.is_empty() {
135135
match args.get(0) {
136136
Value::Boolean(b) => b,
137137
_ => true, // default to localStorage

0 commit comments

Comments
 (0)