summaryrefslogtreecommitdiffhomepage
path: root/app/lib/enum.js
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-03-24 10:12:18 +0800
committerErik Larkö <erik@mullvad.net>2017-03-24 18:37:40 +0800
commit6ad9d39c56831748b40e28145f403e36d7d8113a (patch)
treed4bf728f010b5c031a7ae89dd7e2922dc05574a5 /app/lib/enum.js
parent5caca4f7a9c2d32356542d1ca48bb4738cfb67c2 (diff)
downloadmullvadvpn-6ad9d39c56831748b40e28145f403e36d7d8113a.tar.xz
mullvadvpn-6ad9d39c56831748b40e28145f403e36d7d8113a.zip
Whitespace errors
Diffstat (limited to 'app/lib/enum.js')
-rw-r--r--app/lib/enum.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/lib/enum.js b/app/lib/enum.js
index ac5df30d06..f436c741d0 100644
--- a/app/lib/enum.js
+++ b/app/lib/enum.js
@@ -7,7 +7,7 @@ export default class Enum {
/**
* Creates an instance of EnumBase.
- *
+ *
* @param {...string|object} ... - enum keys
* @memberOf Enum
*/
@@ -45,7 +45,7 @@ export default class Enum {
value: allKeys,
writable: false
});
-
+
Object.defineProperty(this, 'reverseMap', {
enumerable: false,
value: reverseMap,
@@ -57,22 +57,22 @@ export default class Enum {
/**
* Check if key is registered in this enum
- *
- * @param {string} key
+ *
+ * @param {string} key
* @returns {bool}
- *
+ *
* @memberOf Enum
*/
- isValid(key) {
- return this.allKeys.includes(key);
+ isValid(key) {
+ return this.allKeys.includes(key);
}
/**
* Return key for value
- *
+ *
* @param {any} value
* @returns {any|undefined} returns undefined if key is not found
- *
+ *
* @memberOf Enum
*/
reverse(value) {