mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
removed custom Assert
This commit is contained in:
parent
177121868b
commit
d9c9634138
@ -18,7 +18,6 @@ package helpers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -27,13 +26,6 @@ func MakeTempTestDir() (string, error) {
|
|||||||
return ioutil.TempDir("/tmp", "minio-test-")
|
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
|
// Camelcase input string
|
||||||
func FirstUpper(str string) string {
|
func FirstUpper(str string) string {
|
||||||
return strings.ToUpper(str[0:1]) + str[1:]
|
return strings.ToUpper(str[0:1]) + str[1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user