[PAGE ISSUE]: 'avoid_empty_else' #5341
Labels
d.enhancement
Improves docs with specific ask
e0-minutes
Can complete in < 60 minutes of normal, not dedicated, work
from.page-issue
Reported in a reader-filed concern
p3-low
Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.
t.diagnostics
Relates to diagnostics, analysis, or linting of code
Page URL
https://dart.dev/tools/linter-rules/avoid_empty_else.html
Page source
https://github.com/dart-lang/site-www/tree/main/src/tools/linter-rules/avoid_empty_else.md
Describe the problem
I realized that the example of good practice was missing.
Expected fix
BAD
if (x > y) print("1"); else ; print("2");
Good
if (x > y) print("1"); else print("2");
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: