mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Setup golangci-lint Github Action
This commit is contained in:
parent
9242350f0e
commit
6e2e2d1665
14 changed files with 52 additions and 66 deletions
|
@ -19,13 +19,12 @@ func Path(router *mux.Router, name string, args ...interface{}) string {
|
|||
}
|
||||
|
||||
var pairs []string
|
||||
for _, param := range args {
|
||||
switch param.(type) {
|
||||
for _, arg := range args {
|
||||
switch param := arg.(type) {
|
||||
case string:
|
||||
pairs = append(pairs, param.(string))
|
||||
pairs = append(pairs, param)
|
||||
case int64:
|
||||
val := param.(int64)
|
||||
pairs = append(pairs, strconv.FormatInt(val, 10))
|
||||
pairs = append(pairs, strconv.FormatInt(param, 10))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue