1
0
mirror of https://github.com/Luzifer/repo-template.git synced 2024-09-20 09:32:58 +00:00

Linter: Follow linter advices

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-07-12 00:07:14 +02:00
parent 3505c81287
commit 1867218dd3
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -180,7 +180,7 @@ func matchTopicFilter(repo *github.Repository) bool {
negate := topic[0] == '-' negate := topic[0] == '-'
if negate { if negate {
topic = topic[1:len(topic)] topic = topic[1:]
} }
if str.StringInSlice(topic, repo.Topics) != negate { if str.StringInSlice(topic, repo.Topics) != negate {
@ -241,7 +241,3 @@ func getOutfile(repo *github.Repository) (string, error) {
}, buf) }, buf)
return buf.String(), err return buf.String(), err
} }
func simpleReplace(s, old, new string) string {
return strings.Replace(s, old, new, -1)
}