Empty blocks do not add anything of value to the codebase. We believe that this is either a copy-paste error or that the programmer forgot to add the relevant statements.
if (/* some condition */) {
}
def foo(): Unit = ()
if (/* some condition */) {
// do something
} else {
// do something else
}
def foo(): Unit = {
// body
}