Optimize code
This commit is contained in:
committed by
Ta-Ching Chen
parent
01bcfad44a
commit
b578819202
@@ -81,7 +81,7 @@ func TestStorageService(t *testing.T) {
|
||||
panicIf(err)
|
||||
contents2, err := ioutil.ReadFile(retrievedfile.Name())
|
||||
panicIf(err)
|
||||
if bytes.Compare(contents1, contents2) != 0 {
|
||||
if !bytes.Equal(contents1, contents2) {
|
||||
log.Panicf("Contents don't match")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user