Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add nil check #70

Merged
merged 5 commits into from
Sep 14, 2023
Merged

fix: add nil check #70

merged 5 commits into from
Sep 14, 2023

Conversation

bsushmith
Copy link
Collaborator

No description provided.

@bsushmith bsushmith marked this pull request as ready for review September 14, 2023 06:30
AccessToken string `mapstructure:"access_token" validate:"required_without=Workspaces"`
Workspaces []slack.SlackWorkspace `mapstructure:"workspaces" validate:"required_without=AccessToken,dive"`
AccessToken string `mapstructure:"access_token" validate:"required_without=SlackConfig"`
//Workspaces []slack.SlackWorkspace `mapstructure:"workspaces" validate:"required_without=AccessToken,dive"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//Workspaces []slack.SlackWorkspace `mapstructure:"workspaces" validate:"required_without=AccessToken,dive"`

@@ -48,7 +48,7 @@ func (s *ClientTestSuite) setup() {
Messages: s.messages,
}

s.notifier = slack.NewNotifier(conf, s.mockHttpClient)
s.notifier = slack.NewNotifier(conf, s.mockHttpClient, nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
s.notifier = slack.NewNotifier(conf, s.mockHttpClient, nil)
s.notifier = slack.NewNotifier(conf, s.mockHttpClient, log.NewNoop())

@bsushmith bsushmith merged commit 3bd8e74 into main Sep 14, 2023
4 checks passed
@bsushmith bsushmith deleted the slack-notifier-changes branch September 14, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants