mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
Cleanup - Comments and readability fixes (#1386)
This commit is contained in:
committed by
Harshavardhana
parent
f87a19a15c
commit
1813e9c070
@@ -36,18 +36,6 @@ const (
|
||||
minioMetaVolume = ".minio"
|
||||
)
|
||||
|
||||
// checks whether bucket exists.
|
||||
func (o objectAPI) isBucketExist(bucketName string) (bool, error) {
|
||||
// Check whether bucket exists.
|
||||
if _, e := o.storage.StatVol(bucketName); e != nil {
|
||||
if e == errVolumeNotFound {
|
||||
return false, nil
|
||||
}
|
||||
return false, e
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// listLeafEntries - lists all entries if a given prefixPath is a leaf
|
||||
// directory, returns error if any - returns empty list if prefixPath
|
||||
// is not a leaf directory.
|
||||
|
||||
Reference in New Issue
Block a user