[chore] TSLint cleanup

This commit is contained in:
Steven Evans
2018-07-08 01:11:34 -04:00
parent 28bebeb144
commit 41fbf63f0d
7 changed files with 94 additions and 43 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ export function isPowerOfTwo(n: number) {
return false;
}
if (n === 0) {
return false;
}
// Disabiling the bitwise rule because it's honestly the most effecient way to check for this.
// tslint:disable-next-line:no-bitwise
return n && (n & (n - 1)) === 0;
return (n & (n - 1)) === 0;
}