From 1867218dd342c5b53db6abda563958bdd5087ccc Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 12 Jul 2018 00:07:14 +0200 Subject: [PATCH] Linter: Follow linter advices Signed-off-by: Knut Ahlers --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index 2fc5a8c..5662020 100644 --- a/main.go +++ b/main.go @@ -180,7 +180,7 @@ func matchTopicFilter(repo *github.Repository) bool { negate := topic[0] == '-' if negate { - topic = topic[1:len(topic)] + topic = topic[1:] } if str.StringInSlice(topic, repo.Topics) != negate { @@ -241,7 +241,3 @@ func getOutfile(repo *github.Repository) (string, error) { }, buf) return buf.String(), err } - -func simpleReplace(s, old, new string) string { - return strings.Replace(s, old, new, -1) -}