mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Introduce staticcheck for stricter builds (#7035)
This commit is contained in:
committed by
Nitish Tiwari
parent
4ba77a916d
commit
df35d7db9d
@@ -31,9 +31,8 @@ func TestMimeLookup(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTypeByExtension(t *testing.T) {
|
||||
var contentType string
|
||||
// Test TypeByExtension.
|
||||
contentType = TypeByExtension(".txt")
|
||||
contentType := TypeByExtension(".txt")
|
||||
if contentType != "text/plain" {
|
||||
t.Fatalf("Invalid content type are found expected \"text/plain\", got %s", contentType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user