Is there another way to make this:
- More readable; and
- use fewer lines of code?
This code structure just looks like it's still not complete. Is there any refactoring that can be applied to this to make it "cleaner"?
if (someVariable){
bool otherVariable = SomeMethod();
if(otherVariable){
// Do something here
} else {
// Do something here
}
} else {
// Do something here
}
Aucun commentaire:
Enregistrer un commentaire