Refactor 'if' expression

Signed-off-by: ankitdobhal <dobhal.ankit@protonmail.com>
This commit is contained in:
ankitdobhal 2021-03-20 05:47:43 -04:00
parent c2724c948c
commit 8cbe61bb66
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ with open("add_categories", "r") as f:
while True:
title = content.next()
cat = content.next().strip()
is_new = True if cat[-1]=="*" else False
is_new = cat[-1]=="*"
cat = cat.replace('*','')
snips_by_title[title] = {
"category": cat,