Backends/GLFW3/Controller: Wrap both sides of if-else with {} equally.

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-04-12 00:57:06 +02:00
parent 77e00a9329
commit 690a87dbfd

View file

@ -46,10 +46,8 @@ static void JoystickCallback(int joystick_id, int event)
axis_neutrals = (float*)malloc(sizeof(float) * total_axes);
if (axis_neutrals != NULL)
{
for (int i = 0; i < total_axes; ++i)
axis_neutrals[i] = axes[i];
}
else
Backend_PrintError("Couldn't allocate memory for axis");
}