mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
removed custom Assert
This commit is contained in:
parent
177121868b
commit
d9c9634138
@ -18,7 +18,6 @@ package helpers
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -27,13 +26,6 @@ func MakeTempTestDir() (string, error) {
|
||||
return ioutil.TempDir("/tmp", "minio-test-")
|
||||
}
|
||||
|
||||
// Assert wrapper for error not being null
|
||||
func Assert(err error) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// Camelcase input string
|
||||
func FirstUpper(str string) string {
|
||||
return strings.ToUpper(str[0:1]) + str[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user