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 committed by Chris Cummer
parent 4c938000cb
commit c6aee425a0
3 changed files with 5 additions and 5 deletions

6
Gopkg.lock generated
View File

@ -8,10 +8,10 @@
version = "v0.23.0"
[[projects]]
branch = "master"
name = "github.com/briandowns/openweathermap"
packages = ["."]
revision = "1b875797cb8f0a25f7232377c231bf9a294f7c86"
version = "0.11"
revision = "2adae1e5d10290d8cd435bd30296fc5e8f754862"
[[projects]]
branch = "master"
@ -164,6 +164,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "96c4d6298328080435e3f1de8240ec9fb04419db37e20ae77d7fa8dc75ca3e5a"
inputs-digest = "b0e632406212933c5f4d7652db7aa06e63f4ed94d38ceb823e5c51b865c20be0"
solver-name = "gps-cdcl"
solver-version = 1

View File

@ -27,7 +27,7 @@
[[constraint]]
name = "github.com/briandowns/openweathermap"
version = "0.11.0"
branch = "master"
[[constraint]]
name = "github.com/gdamore/tcell"

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