mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 01:24:05 +02:00
Fixed several linting errors
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { t } from '../util/locale';
|
||||
import { utilDisplayName } from '../util';
|
||||
import {
|
||||
utilDisplayName,
|
||||
utilDisplayType
|
||||
} from '../util';
|
||||
import {
|
||||
ValidationIssueType,
|
||||
ValidationIssueSeverity,
|
||||
@@ -40,7 +43,7 @@ export function validationDisconnectedHighway(context) {
|
||||
if (preset && preset.name()) {
|
||||
entityLabel = preset.name();
|
||||
} else {
|
||||
entityLabel = utilDisplayType(entity.id)
|
||||
entityLabel = utilDisplayType(entity.id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export function validationIssue(attrs) {
|
||||
throw new Error('Invalid attrs.type: ' + attrs.type);
|
||||
}
|
||||
if (!attrs.severity || !ValidationIssueSeverity.hasOwnProperty(attrs.severity)) {
|
||||
throw new Error('Invalid attrs.severity: ' + attr.severity);
|
||||
throw new Error('Invalid attrs.severity: ' + attrs.severity);
|
||||
}
|
||||
if (!attrs.message) throw new Error('attrs.message is empty');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user