Replace d.Chk.True with d.PanicIfFalse (#2563)

And same for d.Chk.False
This commit is contained in:
Erik Arvidsson
2016-09-14 13:11:28 -07:00
committed by GitHub
parent 601db6bd89
commit 5edf89cf3d
47 changed files with 171 additions and 124 deletions

View File

@@ -34,6 +34,6 @@ func DumbCopy(srcPath, dstPath string) {
// MyDir returns the directory in which the file containing the calling source code resides.
func MyDir() string {
_, path, _, ok := runtime.Caller(1)
d.Chk.True(ok, "Should have been able to get Caller.")
d.PanicIfFalse(ok, "Should have been able to get Caller.")
return filepath.Dir(path)
}