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) -}