mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Remove unnecessary nil check
This commit is contained in:
parent
d77f38c53d
commit
638e1eec95
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Cont
|
||||||
}
|
}
|
||||||
at := bytes.IndexByte(line, '@')
|
at := bytes.IndexByte(line, '@')
|
||||||
m = []int{0, stop, at, stop - 1}
|
m = []int{0, stop, at, stop - 1}
|
||||||
if m == nil || bytes.IndexByte(line[m[2]:m[3]], '.') < 0 {
|
if bytes.IndexByte(line[m[2]:m[3]], '.') < 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
lastChar := line[m[1]-1]
|
lastChar := line[m[1]-1]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue