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:
@@ -739,6 +739,7 @@ void NavigationStyle::zoom(SoCamera * cam, float diffvalue)
|
||||
// sqrt(FLT_MAX) == ~ 1e+19, which should be both safe for further
|
||||
// calculations and ok for the end-user and app-programmer.
|
||||
if (distorigo > float(sqrt(FLT_MAX))) {
|
||||
// do nothing here
|
||||
}
|
||||
else {
|
||||
cam->position = newpos;
|
||||
|
||||
Reference in New Issue
Block a user