Fix shadowing of err variable (#1718)

This commit is contained in:
Krishnan Parthasarathi 2016-05-21 13:13:47 +05:30 committed by Harshavardhana
parent 5a4b074ca0
commit 3a980eac1a

View File

@ -240,7 +240,8 @@ func initFormatXL(storageDisks []StorageAPI) (err error) {
}
return err
}
u, err := uuid.New()
var u *uuid.UUID
u, err = uuid.New()
if err != nil {
saveFormatErrCnt++
// Check for write quorum.