1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 14:55:37 +03:00

sd-bus: decrease indentation

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-10-04 12:37:49 +02:00
parent 0a8720c7f0
commit b0fcb7c045

View File

@ -587,16 +587,13 @@ _public_ int sd_bus_error_set_errnof(sd_bus_error *e, int error, const char *for
} }
const char *bus_error_message(const sd_bus_error *e, int error) { const char *bus_error_message(const sd_bus_error *e, int error) {
if (e) {
/* Sometimes, the D-Bus server is a little bit too verbose with /* Sometimes, the D-Bus server is a little bit too verbose with
* its error messages, so let's override them here */ * its error messages, so let's override them here */
if (sd_bus_error_has_name(e, SD_BUS_ERROR_ACCESS_DENIED)) if (sd_bus_error_has_name(e, SD_BUS_ERROR_ACCESS_DENIED))
return "Access denied"; return "Access denied";
if (e->message) if (e && e->message)
return e->message; return e->message;
}
return strerror_safe(error); return strerror_safe(error);
} }