fix linter errors

This commit is contained in:
Simon Aronsson 2019-06-23 00:32:50 +02:00
parent 998e8052c5
commit 972b0b276f
3 changed files with 16 additions and 8 deletions

View file

@ -17,19 +17,19 @@ type slackTypeNotifier struct {
func newSlackNotifier(c *cobra.Command, acceptedLogLevels []log.Level) typeNotifier {
flags := c.PersistentFlags()
hookUrl, _ := flags.GetString("notification-slack-hook-url")
hookURL, _ := flags.GetString("notification-slack-hook-url")
userName, _ := flags.GetString("notification-slack-identifier")
channel, _ := flags.GetString("notification-slack-channel")
emoji, _ := flags.GetString("notification-slack-icon-emoji")
iconUrl, _ := flags.GetString("notification-slack-icon-url")
iconURL, _ := flags.GetString("notification-slack-icon-url")
n := &slackTypeNotifier{
SlackrusHook: slackrus.SlackrusHook{
HookURL: hookUrl,
HookURL: hookURL,
Username: userName,
Channel: channel,
IconEmoji: emoji,
IconURL: iconUrl,
IconURL: iconURL,
AcceptedLevels: acceptedLogLevels,
},
}