Commit 49b044a6 authored by Luca Giambonini's avatar Luca Giambonini

removed unreachable breaks

parent e6de703a
......@@ -124,13 +124,11 @@ void RunnerWorker::processNextPhase()
// If we're here, we're successfully over.
emit runFinished(true);
return;
break;
default:
// Urgh.. what?
manageErrors(Akabei::Error::List() << Akabei::Error(Akabei::Error::AkabeiInternalError,
tr("An internal error occurred during running the transaction")));
return;
break;
}
processNextPhase();
} else {
......
......@@ -144,13 +144,11 @@ void ValidatorWorker::processNextPhase()
// If we're here, we're successfully over.
emit validationFinished(true, m_operations);
return;
break;
default:
// Urgh.. what?
manageErrors(Error::List() << Error(Error::AkabeiInternalError,
tr("An internal error occurred during validation")));
return;
break;
}
processNextPhase();
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment