Skip to content

Commit f744fe7

Browse files
tevankoTaylor Evanko
and
Taylor Evanko
authored
fix: LGTM return fix for falsy str (#416)
* LGTM - return fix for falsy str * condensing str return logic Co-authored-by: Taylor Evanko <[email protected]>
1 parent 564f656 commit f744fe7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/metadata-storage.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ class MetadataStorage {
193193
utils.log.info(`window.sessionStorage unavailable. Reason: "${e}"`);
194194
}
195195
}
196-
if (!str) false;
197-
return true;
196+
return !!str
198197
}
199198
}
200199

0 commit comments

Comments
 (0)