mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
Enable go-critic linter and fix various issues detected
This commit is contained in:
parent
f6404290ba
commit
b1e73fafdf
34 changed files with 126 additions and 109 deletions
|
@ -66,7 +66,7 @@ func filterValidXMLChar(r rune) rune {
|
|||
func procInst(param, s string) string {
|
||||
// TODO: this parsing is somewhat lame and not exact.
|
||||
// It works for all actual cases, though.
|
||||
param = param + "="
|
||||
param += "="
|
||||
idx := strings.Index(s, param)
|
||||
if idx == -1 {
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue