diff options
author | kizerkizer <kizerkizerkizerkizerkizer@gmail.com> | 2018-06-10 18:31:24 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 17:49:52 +0200 |
commit | 05ff9c85a14d981b79295c74892b48105410ac63 (patch) | |
tree | 164fd0429067e4e4026942b6dbaf5c7778dfbd06 /util.ts | |
parent | e4735884c085b717a1c973f083a1277da2b0858f (diff) |
Use template literals instead of string concatenation (#176)
Diffstat (limited to 'util.ts')
-rw-r--r-- | util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ export function log(...args: any[]): void { export function assert(cond: boolean, msg = "") { if (!cond) { - throw Error("Assert fail. " + msg); + throw Error(`Assert fail. ${msg}`); } } |