From 7a3646049cc981e6ed2f380492c7559b412fb647 Mon Sep 17 00:00:00 2001 From: cws Date: Thu, 5 Jan 2017 09:49:27 -0500 Subject: [PATCH] go fmt --- plugins/reminder/reminder.go | 2 +- plugins/twitch/twitch.go | 3 +-- plugins/twitch/twitch_test.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/reminder/reminder.go b/plugins/reminder/reminder.go index 820b443..cd9803d 100644 --- a/plugins/reminder/reminder.go +++ b/plugins/reminder/reminder.go @@ -74,7 +74,7 @@ func reminderer(p *ReminderPlugin) { } p.mutex.Unlock() - + if reminder.from == reminder.who { reminder.from = "you" } diff --git a/plugins/twitch/twitch.go b/plugins/twitch/twitch.go index be3f96f..4ba815e 100644 --- a/plugins/twitch/twitch.go +++ b/plugins/twitch/twitch.go @@ -160,7 +160,6 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri } } - // func (p *TwitchPlugin) getTwitchStreams(channel string) bool { // token := p.Bot.config.Twitch.Token // if token == "" || token == "" { @@ -193,4 +192,4 @@ func (p *TwitchPlugin) checkTwitch(channel string, twitcher *Twitcher, alwaysPri // } // } // return true -// } \ No newline at end of file +// } diff --git a/plugins/twitch/twitch_test.go b/plugins/twitch/twitch_test.go index 4a9522d..ba0967d 100644 --- a/plugins/twitch/twitch_test.go +++ b/plugins/twitch/twitch_test.go @@ -28,7 +28,7 @@ func makeMessage(payload string) msg.Message { func makeTwitchPlugin(t *testing.T) (*TwitchPlugin, *bot.MockBot) { mb := bot.NewMockBot() c := New(mb) - c.config.Twitch.Users = map[string][]string{ "test" : []string{"drseabass"}} + c.config.Twitch.Users = map[string][]string{"test": []string{"drseabass"}} assert.NotNil(t, c) c.twitchList["drseabass"] = &Twitcher{