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:
parent
60a8300821
commit
7d21f140cd
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue