mirror of
https://github.com/gotify/cli.git
synced 2024-01-28 15:20:39 +03:00
Merge pull request #61 from tessus/fix/panic
fix panic when no config and no priority argument
This commit is contained in:
@@ -68,7 +68,7 @@ func doPush(ctx *cli.Context) {
|
||||
stringURL = conf.URL
|
||||
}
|
||||
|
||||
if !ctx.IsSet("priority") {
|
||||
if !ctx.IsSet("priority") && conf != nil {
|
||||
priority = conf.DefaultPriority
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user