Skip to content

Commit

Permalink
fix: LGTM return fix for falsy str (#416)
Browse files Browse the repository at this point in the history
* LGTM - return fix for falsy str

* condensing str return logic

Co-authored-by: Taylor Evanko <taylor.evanko@Taylors-MacBook-Pro.local>
  • Loading branch information
tevanko and Taylor Evanko authored Aug 10, 2021
1 parent 564f656 commit f744fe7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/metadata-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ class MetadataStorage {
utils.log.info(`window.sessionStorage unavailable. Reason: "${e}"`);
}
}
if (!str) false;
return true;
return !!str
}
}

Expand Down

0 comments on commit f744fe7

Please sign in to comment.