[V3] Drop an unnecessary if in embed_requested (#1468)

This commit is contained in:
palmtree5 2018-03-28 15:10:02 -08:00 committed by Will
parent 4e2b83c052
commit 61b34e835e

View File

@ -168,9 +168,8 @@ class RedBase(BotBase, RpcMethodMixin):
return user_setting
else:
guild_setting = await self.db.guild(channel.guild).embeds()
if command and command != self.get_command("help"):
if guild_setting is not None:
return guild_setting
if guild_setting is not None:
return guild_setting
global_setting = await self.db.embeds()
return global_setting