Removed (almost) all remaining init()

This commit is contained in:
Deluan
2020-01-08 10:25:23 -05:00
committed by Deluan Quintão
parent 5d2a7b1db1
commit 23e38ec82f
5 changed files with 34 additions and 23 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package main
import "mime"
func init() {
func initMimeTypes() {
mt := map[string]string{
".mp3": "audio/mpeg",
".ogg": "audio/ogg",
@@ -39,6 +39,6 @@ func init() {
}
for ext, typ := range mt {
mime.AddExtensionType(ext, typ)
_ = mime.AddExtensionType(ext, typ)
}
}