Build fix, fixing without a PR

This commit is contained in:
Harshavardhana
2014-12-11 20:38:45 -08:00
parent 4a7d9a58f4
commit 0bd2b8516e
2 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ import (
func fsGetList(config inputConfig) (io.Reader, error) {
var objectStorage storage.ObjectStorage
rootDir := path.Join(config.rootDir, config.storageDriver)
objectStorage = fsstorage.FileSystemStorage{RootDir: rootDir}
objectStorage, _ = fsstorage.NewStorage(rootDir)
objectList, err := objectStorage.List("/")
if err != nil {
return nil, err
@@ -30,7 +30,7 @@ func fsGetList(config inputConfig) (io.Reader, error) {
func fsGet(config inputConfig, objectPath string) (io.Reader, error) {
var objectStorage storage.ObjectStorage
rootDir := path.Join(config.rootDir, config.storageDriver)
objectStorage = fsstorage.FileSystemStorage{RootDir: rootDir}
objectStorage, _ = fsstorage.NewStorage(rootDir)
object, err := objectStorage.Get(objectPath)
if err != nil {
return nil, err
@@ -45,7 +45,7 @@ func fsPut(config inputConfig, objectPath string, reader io.Reader) error {
return err
}
var objectStorage storage.ObjectStorage
objectStorage = fsstorage.FileSystemStorage{RootDir: rootDir}
objectStorage, _ = fsstorage.NewStorage(rootDir)
if err = objectStorage.Put(objectPath, reader); err != nil {
return err
}