EionRobb / purple-discord

A libpurple/Pidgin plugin for Discord
GNU General Public License v3.0
382 stars 43 forks source link

Don't store a variable that isn't used before return #394

Closed pabs3 closed 2 years ago

pabs3 commented 2 years ago

Suggested-by: scan-build libdiscord.c:3688:6: warning: Value stored to 'channel' is never read [deadcode.DeadStores] channel = discord_add_thread(da, guild, parent, data, guild->id); ^ ~~~~~~~~~~~~~~

EionRobb commented 2 years ago

You're awesome. Thanks for the tidy-ups :)