cleanup: All conditionals simplified under pkg. (#3875)

Address all the changes reported/recommended by
`gosimple` tool.
This commit is contained in:
Harshavardhana
2017-03-09 10:13:30 -08:00
committed by GitHub
parent 43317530d5
commit 85cbd875fc
5 changed files with 8 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
/*
* mime-db: Mime Database, (C) 2015, 2016 Minio, Inc.
* mime-db: Mime Database, (C) 2015, 2016, 2017 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ func TestMimeLookup(t *testing.T) {
t.Fatalf("Invalid content type are found expected \"application/x-msdownload\", got %s", contentType)
}
compressible := DB["txt"].Compressible
if compressible != false {
if compressible {
t.Fatalf("Invalid content type are found expected \"false\", got %t", compressible)
}
}