forked from MapComplete/MapComplete
Small tweaks
This commit is contained in:
parent
4fcd3523b7
commit
e904043069
6 changed files with 27 additions and 75 deletions
3
Utils.ts
3
Utils.ts
|
@ -1,5 +1,4 @@
|
|||
import * as colors from "./assets/colors.json"
|
||||
import {TileRange} from "./Models/TileRange";
|
||||
|
||||
export class Utils {
|
||||
|
||||
|
@ -238,7 +237,7 @@ export class Utils {
|
|||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
static getOrSetDefault<K, V>(dict: Map<K, V>, k: K, v: () => V) {
|
||||
let found = dict.get(k);
|
||||
if (found !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue