mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
update openweathermap package
This commit is contained in:
parent
4c938000cb
commit
c6aee425a0
6
Gopkg.lock
generated
6
Gopkg.lock
generated
@ -8,10 +8,10 @@
|
|||||||
version = "v0.23.0"
|
version = "v0.23.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
branch = "master"
|
||||||
name = "github.com/briandowns/openweathermap"
|
name = "github.com/briandowns/openweathermap"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "1b875797cb8f0a25f7232377c231bf9a294f7c86"
|
revision = "2adae1e5d10290d8cd435bd30296fc5e8f754862"
|
||||||
version = "0.11"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -164,6 +164,6 @@
|
|||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "96c4d6298328080435e3f1de8240ec9fb04419db37e20ae77d7fa8dc75ca3e5a"
|
inputs-digest = "b0e632406212933c5f4d7652db7aa06e63f4ed94d38ceb823e5c51b865c20be0"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/briandowns/openweathermap"
|
name = "github.com/briandowns/openweathermap"
|
||||||
version = "0.11.0"
|
branch = "master"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/gdamore/tcell"
|
name = "github.com/gdamore/tcell"
|
||||||
|
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
|
// ValidAPIKey makes sure that the key given is a valid one
|
||||||
func ValidAPIKey(key string) error {
|
func ValidAPIKey(key string) error {
|
||||||
if len(key) == 32 {
|
if len(key) != 32 {
|
||||||
return errors.New("invalid key")
|
return errors.New("invalid key")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user