Skip to content

Commit

Permalink
remove assigning variable in conditional statement (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
falentio authored Oct 16, 2022
1 parent 81e7292 commit 319bf82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets/js/components/dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ if (toggler) {
*/
function initTheme() {
//If the user manually set a theme, we'll load that
let storedTheme
if ((storedTheme = localStorage.getItem(THEME_KEY))) {
const storedTheme = localStorage.getItem(THEME_KEY)
if (storedTheme) {
return setTheme(storedTheme)
}

Expand Down

0 comments on commit 319bf82

Please sign in to comment.