Files
bubbletea/standard_renderer.go
Eng Zer Jun 12f405723d refactor: remove redundant nil check in flush (#812)
From the Go docs:

  "If the map is nil, the number of iterations is 0." [1]

Therefore, an additional nil check for before the loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-24 09:17:44 -07:00

17 KiB