client: Don't check for errors on agent requests

method_call and method_reply of type error are mutually exclusive.  ell
will never forward method_reply messages to dbus services, so checking
for dbus_message_has_error is pointless.
This commit is contained in:
Tim Kourt 2019-10-24 12:53:55 -07:00 committed by Denis Kenzior
parent 3540cc5cc0
commit 7e9df2cbd5
1 changed files with 0 additions and 12 deletions

View File

@ -100,9 +100,6 @@ static struct l_dbus_message *request_passphrase_method_call(
struct l_dbus_message *reply;
const char *path;
if (dbus_message_has_error(message))
return NULL;
reply = request_passphrase_command_option(message);
if (reply)
return reply;
@ -141,9 +138,6 @@ static struct l_dbus_message *request_private_key_passphrase_method_call(
struct l_dbus_message *reply;
const char *path;
if (dbus_message_has_error(message))
return NULL;
reply = request_passphrase_command_option(message);
if (reply)
return reply;
@ -203,9 +197,6 @@ static struct l_dbus_message *request_username_and_password_method_call(
struct l_dbus_message *reply;
const char *path;
if (dbus_message_has_error(message))
return NULL;
reply = request_username_and_password_command_option(message);
if (reply)
return reply;
@ -263,9 +254,6 @@ static struct l_dbus_message *request_user_password_method_call(
const char *username;
char *username_prompt;
if (dbus_message_has_error(message))
return NULL;
reply = request_user_password_command_option(message);
if (reply)
return reply;