Fixed several linting errors

This commit is contained in:
Quincy Morgan
2018-12-19 13:22:48 -05:00
parent fb182dca37
commit 59b0252b0e
4 changed files with 10 additions and 14 deletions
+5 -2
View File
@@ -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);
}
}
+1 -1
View File
@@ -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');