refactor(type)

This commit is contained in:
Tomas Aparicio 2015-03-30 02:49:19 +02:00
parent 5e47888d78
commit da8c9707c9
3 changed files with 7 additions and 15 deletions

View file

@ -9,11 +9,6 @@ const (
MAGICK = "magick"
)
type Type struct {
Name string
Mime string
}
func DetermineType(buf []byte) *Type {
return &Type{Name: "jpg", Mime: "image/jpg"}
func DetermineType(buf []byte) string {
return vipsImageType(buf)
}