LGTM: [skip ci] fix: Empty branch of conditional

An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
This commit is contained in:
wmayer
2020-07-26 15:49:14 +02:00
parent 8dac7e4666
commit dc65b055e5
11 changed files with 36 additions and 18 deletions

View File

@@ -114,6 +114,7 @@ bool ViewProviderLux::setEdit(int ModNum)
void ViewProviderLux::unsetEdit(int ModNum)
{
if (ModNum == ViewProvider::Default) {
// Do nothing here
}
else {
ViewProviderDocumentObjectGroup::unsetEdit(ModNum);
@@ -192,6 +193,7 @@ bool ViewProviderPovray::setEdit(int ModNum)
void ViewProviderPovray::unsetEdit(int ModNum)
{
if (ModNum == ViewProvider::Default) {
// Do nothing here
}
else {
ViewProviderDocumentObjectGroup::unsetEdit(ModNum);