From de4af14676276ea79263c03aa62a56aa728ee69b Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 22 Feb 2018 20:29:04 -0500 Subject: [PATCH] Fix unreferenced tmp variable (#1334) --- redbot/cogs/cleanup/cleanup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/cogs/cleanup/cleanup.py b/redbot/cogs/cleanup/cleanup.py index 63bd76e31..a4fe3dccf 100644 --- a/redbot/cogs/cleanup/cleanup.py +++ b/redbot/cogs/cleanup/cleanup.py @@ -224,6 +224,8 @@ class Cleanup: await tmp.delete() else: return await ctx.send('Cancelled.') + else: + tmp = ctx.message to_delete = []