[notifications] fix segfault because url is not loaded (#2679)

This commit is contained in:
Laurence Jones 2023-12-21 12:27:34 +00:00 committed by GitHub
parent 162768bdec
commit bc9bfa81b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,9 @@ func (cli cliNotifications) NewCommand() *cobra.Command {
if err := require.LAPI(csConfig); err != nil {
return err
}
if err := csConfig.LoadAPIClient(); err != nil {
return fmt.Errorf("loading api client: %w", err)
}
if err := require.Notifications(csConfig); err != nil {
return err
}