Remove unused respondError function
This commit is contained in:
1 parent
837c91e0dd
commit
1ac16bcfb4
1 file changed
-7
@@ -51,10 +51,3 @@ func (s *Handlers) respondJSON(w http.ResponseWriter, data interface{}, status i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Handlers) respondError(w http.ResponseWriter, code string, message string, status int) {
|
|
||||||
s.respondJSON(w, map[string]string{
|
|
||||||
"error": code,
|
|
||||||
"message": message,
|
|
||||||
}, status)
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user