mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
@@ -102,7 +102,7 @@ func Init() error {
|
||||
// Lookup returns matching content-type for known types of file extensions.
|
||||
func Lookup(extension string) (contentType string, e error) {
|
||||
if !isInitialized {
|
||||
return "", errors.New("contentdb is not initialized.")
|
||||
return "", errors.New("contentdb is not initialized")
|
||||
}
|
||||
|
||||
return extDB[extension], e
|
||||
|
||||
@@ -184,8 +184,8 @@ type bintree struct {
|
||||
}
|
||||
|
||||
var _bintree = &bintree{nil, map[string]*bintree{
|
||||
"db": &bintree{nil, map[string]*bintree{
|
||||
"db.json": &bintree{dbDbJSON, map[string]*bintree{}},
|
||||
"db": {nil, map[string]*bintree{
|
||||
"db.json": {dbDbJSON, map[string]*bintree{}},
|
||||
}},
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user