Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
Code is basically the same, but eslint likes this one better
  • Loading branch information
matiasgarciaisaia committed Oct 20, 2023
1 parent 73af137 commit 9cece15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { config } from "./config"
const languages = (() => {
let langs = iso6393
for (const [code, name] of Object.entries(config.custom_language_names)) {
let lang
if (lang = langs.find((l) => l.iso6393 == code)) {
let lang = langs.find((l) => l.iso6393 == code)
if (lang) {
lang.name = name
}
}
Expand Down

0 comments on commit 9cece15

Please sign in to comment.