mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-15 02:02:08 -04:00
weather: fix fallback temporarily
This commit is contained in:
@@ -31,10 +31,8 @@ func newIpClient() *IpClient {
|
||||
|
||||
func (c *IpClient) Subscribe(id string) chan Location {
|
||||
ch := make(chan Location, 1)
|
||||
if location, err := c.GetLocation(); err != nil {
|
||||
if location, err := c.GetLocation(); err == nil {
|
||||
ch <- location
|
||||
} else {
|
||||
close(ch)
|
||||
}
|
||||
|
||||
return ch
|
||||
|
||||
Reference in New Issue
Block a user