Some code smell fixes from sonarlint

This commit is contained in:
Jasmine Iwanek
2023-05-11 03:02:36 -04:00
parent d314255362
commit 6c1e4a8e2c
137 changed files with 3354 additions and 2900 deletions

View File

@@ -135,7 +135,7 @@ int
discord_load(void)
{
if (discord_handle != NULL)
return (1);
return 1;
// Try to load the DLL
discord_handle = dynld_module(PATH_DISCORD_DLL, discord_imports);
@@ -144,11 +144,11 @@ discord_load(void)
discord_log("discord: couldn't load " PATH_DISCORD_DLL "\n");
discord_close();
return (0);
return 0;
}
discord_loaded = 1;
return (1);
return 1;
}
void