Optimize code

This commit is contained in:
Wang Guoliang
2018-01-24 13:43:51 +08:00
committed by Ta-Ching Chen
parent 01bcfad44a
commit b578819202
11 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -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")
}