diff options
| author | Andy Hayden <andyhayden1@gmail.com> | 2019-01-17 10:08:59 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-17 13:08:59 -0500 |
| commit | b2e54bad61b37f3a186dd72237c694ada77ab94f (patch) | |
| tree | bc30bea78e49fe9c854be93e0509aabc76f77392 /io/util.ts | |
| parent | 811128864c4db40409c5c5538b56466e4f4e704c (diff) | |
Remove race-condition in file_server tests (denoland/deno_std#125)
Original: https://github.com/denoland/deno_std/commit/e28c9a407951f10d952993ff6a7b248ca11243e1
Diffstat (limited to 'io/util.ts')
| -rw-r--r-- | io/util.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/io/util.ts b/io/util.ts index 811940b4d..3266e5018 100644 --- a/io/util.ts +++ b/io/util.ts @@ -1,11 +1,5 @@ import { Buffer, Reader } from "deno"; -export function assert(cond: boolean, msg = "assert") { - if (!cond) { - throw Error(msg); - } -} - // `off` is the offset into `dst` where it will at which to begin writing values // from `src`. // Returns the number of bytes copied. |
