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:
parent
3505c81287
commit
1867218dd3
1 changed files with 1 additions and 5 deletions
6
main.go
6
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue