mirror of
https://github.com/nikoksr/notify.git
synced 2024-11-28 08:39:13 +02:00
fix: use default server url
This commit is contained in:
parent
7bd80b076c
commit
4d485b3ea3
@ -69,7 +69,7 @@ func NewWithServers(deviceKey string, serverURLs ...string) *Service {
|
||||
client: defaultHTTPClient(),
|
||||
}
|
||||
|
||||
if len(serverURLs) > 0 {
|
||||
if len(serverURLs) == 0 {
|
||||
serverURLs = append(serverURLs, DefaultServerURL)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user