mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-15 05:01:41 +08:00
enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
@ -85,9 +85,10 @@ func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Cont
|
||||
} else if lastChar == ')' {
|
||||
closing := 0
|
||||
for i := m[1] - 1; i >= m[0]; i-- {
|
||||
if line[i] == ')' {
|
||||
switch line[i] {
|
||||
case ')':
|
||||
closing++
|
||||
} else if line[i] == '(' {
|
||||
case '(':
|
||||
closing--
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user