We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951328b commit 55a5041Copy full SHA for 55a5041
runtime/src/ext/local_storage/mod.rs
@@ -131,7 +131,7 @@ impl LocalStorageExt {
131
args: ArgumentsList,
132
gc: GcScope<'gc, '_>,
133
) -> JsResult<'gc, Value<'gc>> {
134
- let persistent = if args.len() > 0 {
+ let persistent = if !args.is_empty() {
135
match args.get(0) {
136
Value::Boolean(b) => b,
137
_ => true, // default to localStorage
0 commit comments