1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

update openweathermap package

This commit is contained in:
Hossein Mehrabi
2018-06-07 00:34:04 +04:30
parent 82aff425fc
commit 6541ec89fb
3 changed files with 5 additions and 5 deletions

View File

@@ -178,7 +178,7 @@ func ValidDataUnitSymbol(u string) bool {
// ValidAPIKey makes sure that the key given is a valid one
func ValidAPIKey(key string) error {
if len(key) == 32 {
if len(key) != 32 {
return errors.New("invalid key")
}
return nil