mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
Use check() to improve error check (#139)
This commit is contained in:
parent
874db2a334
commit
8094c7421b
3 changed files with 8 additions and 21 deletions
|
@ -9,9 +9,7 @@ import (
|
|||
|
||||
func SetCacheDirForTest(prefix string) {
|
||||
dir, err := ioutil.TempDir("", prefix)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
check(err)
|
||||
CacheDir = dir
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue