Remove return from JavascriptCommand finish
This commit is contained in:
parent
60a8300821
commit
7d21f140cd
|
@ -7,8 +7,9 @@ JavascriptCommand::JavascriptCommand(WebPageManager *manager, QStringList &argum
|
||||||
|
|
||||||
void JavascriptCommand::finish(InvocationResult *result) {
|
void JavascriptCommand::finish(InvocationResult *result) {
|
||||||
if (result->hasError())
|
if (result->hasError())
|
||||||
return SocketCommand::finish(false, result->errorMessage());
|
SocketCommand::finish(false, result->errorMessage());
|
||||||
|
else {
|
||||||
QString message = result->result().toString();
|
QString message = result->result().toString();
|
||||||
SocketCommand::finish(true, message);
|
SocketCommand::finish(true, message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue