forked from MapComplete/MapComplete
chore: automatic fix some linting errors, update lint config
This commit is contained in:
parent
04c8ccb0d2
commit
804280511b
26 changed files with 47 additions and 45 deletions
|
|
@ -17,7 +17,7 @@ export default class WithContextLoader {
|
|||
* The found value is interpreted as a tagrendering and fetched/parsed
|
||||
* */
|
||||
public tr(key: string, deflt?: string, translationContext?: string) {
|
||||
let v: Translatable | TagRenderingConfigJson = this._json[key]
|
||||
const v: Translatable | TagRenderingConfigJson = this._json[key]
|
||||
if (v === undefined || v === null) {
|
||||
if (deflt === undefined) {
|
||||
return undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue