1
0
Fork 0
mirror of https://github.com/Luzifer/repo-template.git synced 2024-12-22 20:21:19 +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] == '-'
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)
}