1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Remove return from JavascriptCommand finish

This commit is contained in:
David Tengdin and Matthew Horan 2013-02-26 14:48:15 -05:00
parent 60a8300821
commit 7d21f140cd

View file

@ -7,8 +7,9 @@ JavascriptCommand::JavascriptCommand(WebPageManager *manager, QStringList &argum
void JavascriptCommand::finish(InvocationResult *result) {
if (result->hasError())
return SocketCommand::finish(false, result->errorMessage());
QString message = result->result().toString();
SocketCommand::finish(true, message);
SocketCommand::finish(false, result->errorMessage());
else {
QString message = result->result().toString();
SocketCommand::finish(true, message);
}
}