Update server.c removing duplicated code block (#306)

This commit is contained in:
Eric Chastain 2024-04-30 23:38:49 -04:00 committed by GitHub
parent c6b4411b86
commit e45b420ccc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,11 +140,6 @@ bool server_init(struct sway_server *server) {
return false; return false;
} }
if (!server->backend) {
sway_log(SWAY_ERROR, "Unable to create backend");
return false;
}
server->renderer = fx_renderer_create(server->backend); server->renderer = fx_renderer_create(server->backend);
if (!server->renderer) { if (!server->renderer) {
sway_log(SWAY_ERROR, "Failed to create fx_renderer"); sway_log(SWAY_ERROR, "Failed to create fx_renderer");