mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-20 00:50:42 -06:00
Replace d.Chk.True with d.PanicIfFalse (#2563)
And same for d.Chk.False
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user