mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-23 16:28:11 -07:00
clean-up before bed
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user