Last active
July 17, 2021 08:52
-
-
Save BrianMwas/6a45371223edb9dd5f26b21aa330bd64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bad practive | |
if(recipe.forLunch()); | |
getIngredients(); | |
// Once it is formatted by dart formatter | |
if(recipe.forLunch()) ; | |
getIngredients(); | |
//Good practice | |
if(recipe.forLunch()) | |
getIngredients(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment