Skip to content

Commit 7282587

Browse files
authored
Remove redundant check
1 parent 46475d5 commit 7282587

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dexscript.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@ async def dev(self, ctx, operation, file_path=None):
313313

314314
match lower:
315315
case "write":
316-
if file_path is None:
317-
raise DexScriptError("`file_path` is None")
318-
319316
new_file = ctx.message.attachments[0]
320317

321318
with open(file_path.name, "w") as opened_file:

0 commit comments

Comments
 (0)