Replace panic(fmt.tprintf( antipattern with fmt.panicf

This commit is contained in:
gingerBill
2024-06-11 13:11:14 +01:00
parent 56c5e93fd1
commit 3ff8952813
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ _rand_bytes :: proc(dst: []byte) {
panic("crypto: BCryptGenRandom Invalid parameter")
case:
// Unknown error
panic(fmt.tprintf("crypto: BCryptGenRandom failed: %d\n", ret))
fmt.panicf("crypto: BCryptGenRandom failed: %d\n", ret)
}
}
}