mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-20 11:11:26 +00:00
🐛 Minor fixes
This commit is contained in:
parent
68bef4a663
commit
6a33c359c7
1
main.go
1
main.go
@ -106,6 +106,7 @@ func main() {
|
|||||||
return
|
return
|
||||||
} else if customerrors.Is(err, customerrors.ErrNoInternet) {
|
} else if customerrors.Is(err, customerrors.ErrNoInternet) {
|
||||||
utils.PrintAndExit("No internet connection")
|
utils.PrintAndExit("No internet connection")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,9 @@ func Run(ctx context.Context, requestConfig *config.RequestConfig) (Responses, e
|
|||||||
requestConfig.Yes,
|
requestConfig.Yes,
|
||||||
requestConfig.URL,
|
requestConfig.URL,
|
||||||
)
|
)
|
||||||
|
if clients == nil {
|
||||||
|
return nil, customerrors.ErrInterrupt
|
||||||
|
}
|
||||||
|
|
||||||
responses := releaseDodos(ctx, requestConfig, clients)
|
responses := releaseDodos(ctx, requestConfig, clients)
|
||||||
if ctx.Err() != nil && len(responses) == 0 {
|
if ctx.Err() != nil && len(responses) == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user