mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
update openweathermap package
This commit is contained in:
2
vendor/github.com/briandowns/openweathermap/openweathermap.go
generated
vendored
2
vendor/github.com/briandowns/openweathermap/openweathermap.go
generated
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user