clean-up before bed

This commit is contained in:
Jimmy Zelinskie
2013-06-23 06:21:59 -04:00
parent ccc8897ca8
commit 51acd12101
7 changed files with 99 additions and 100 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ func parseQuery(query string) (*parsedQuery, error) {
return pq, nil
}
func validateParsedQuery(pq *parsedQuery) error {
func (pq *parsedQuery) validate() error {
infohash, ok := pq.params["info_hash"]
if infohash == "" {
return errors.New("infohash does not exist")