From 16e099d49f93a1df7ad2fad16e56acc9521ac03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 8 Apr 2016 23:07:08 +0200 Subject: [PATCH] Resolve a couple tslint warnings. --- config-serializer/assert.ts | 4 ++-- config-serializer/config-items/DualRoleKeystrokeAction.ts | 2 +- config-serializer/config-items/KeyAction.ts | 2 +- config-serializer/config-items/MouseAction.ts | 2 +- config-serializer/config-items/SwitchLayerAction.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config-serializer/assert.ts b/config-serializer/assert.ts index 0c813989..f200e695 100644 --- a/config-serializer/assert.ts +++ b/config-serializer/assert.ts @@ -23,7 +23,7 @@ function assertInt32(target: any, key: string) { } function assertCompactLength(target: any, key: string) { - return assertUInt16(target, key) + return assertUInt16(target, key); } function assertInteger(target: any, key: string, min: number, max: number) { @@ -64,5 +64,5 @@ function assertEnum(enumerated: E) { configurable: true }); } - } + }; } diff --git a/config-serializer/config-items/DualRoleKeystrokeAction.ts b/config-serializer/config-items/DualRoleKeystrokeAction.ts index f0c24052..0bc45377 100644 --- a/config-serializer/config-items/DualRoleKeystrokeAction.ts +++ b/config-serializer/config-items/DualRoleKeystrokeAction.ts @@ -23,7 +23,7 @@ class DualRoleKeystrokeAction extends KeyAction { _fromJsObject(jsObject: any): DualRoleKeystrokeAction { this.assertKeyActionType(jsObject, KeyActionType.DualRoleKeystrokeAction, 'DualRoleKeystrokeAction'); this.scancode = jsObject.scancode; - this.longPressAction = LongPressAction[jsObject.longPressAction]; + this.longPressAction = LongPressAction[ jsObject.longPressAction]; return this; } diff --git a/config-serializer/config-items/KeyAction.ts b/config-serializer/config-items/KeyAction.ts index a369f4ae..1242c5cd 100644 --- a/config-serializer/config-items/KeyAction.ts +++ b/config-serializer/config-items/KeyAction.ts @@ -23,7 +23,7 @@ let KeyActionType = { SwitchKeymapAction : 'switchKeymap', MouseAction : 'mouse', PlayMacroAction : 'playMacro' -} +}; abstract class KeyAction extends Serializable { assertKeyActionType(jsObject: any, keyActionTypeString: string, classname: string) { diff --git a/config-serializer/config-items/MouseAction.ts b/config-serializer/config-items/MouseAction.ts index eedbe325..6b505a24 100644 --- a/config-serializer/config-items/MouseAction.ts +++ b/config-serializer/config-items/MouseAction.ts @@ -21,7 +21,7 @@ class MouseAction extends KeyAction { _fromJsObject(jsObject: any): MouseAction { this.assertKeyActionType(jsObject, KeyActionType.MouseAction, 'MouseAction'); - this.mouseAction = MouseActionParam[jsObject.mouseAction]; + this.mouseAction = MouseActionParam[ jsObject.mouseAction]; return this; } diff --git a/config-serializer/config-items/SwitchLayerAction.ts b/config-serializer/config-items/SwitchLayerAction.ts index 13e7ecac..b5a3446d 100644 --- a/config-serializer/config-items/SwitchLayerAction.ts +++ b/config-serializer/config-items/SwitchLayerAction.ts @@ -19,7 +19,7 @@ class SwitchLayerAction extends KeyAction { _fromJsObject(jsObject: any): SwitchLayerAction { this.assertKeyActionType(jsObject, KeyActionType.SwitchLayerAction, 'SwitchLayerAction'); - this.layer = Layer[jsObject.layer]; + this.layer = Layer[ jsObject.layer]; this.isLayerToggleable = jsObject.toggle; return this; }