Removed unnecessary checks

This commit is contained in:
Eduard Urbach 2024-04-02 19:20:51 +02:00
parent a06defdc3d
commit 4a4b9e168b
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 3 additions and 5 deletions

View File

@ -43,9 +43,9 @@ coverage: 100.0% of statements
## Benchmarks
```
BenchmarkSmall-12 8495775 140.9 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 729133 1457 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 293284 3831 ns/op 2560 B/op 2 allocs/op
BenchmarkSmall-12 8846642 135.5 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 711596 1465 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 279253 3874 ns/op 2560 B/op 2 allocs/op
```
## License

View File

@ -117,7 +117,6 @@ func (r *renderer) processLine(line string) {
return
case '-', '*':
r.closeParagraphs()
line = strings.TrimSpace(line[1:])
if r.listLevel == 0 {
@ -150,7 +149,6 @@ func (r *renderer) processLine(line string) {
}
case '|':
r.closeParagraphs()
line = line[1:]
if r.tableLevel == 0 {