From 3c7448284a9101aeadc4636a7880e5a094a151cb Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 24 Jun 2018 15:02:45 -0500 Subject: [PATCH] != None isn't needed; you can just do e.g. "if foo:". --- lugito | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lugito b/lugito index 5bc6550..4f316b1 100755 --- a/lugito +++ b/lugito @@ -52,7 +52,7 @@ def connecttoirc(): def isnewtask(task): modified = None for data in task: - if modified != None: + if modified: if data["dateCreated"] == data["dateModified"] and data["dateCreated"] == modified: modified = data["dateCreated"] newtask = True @@ -190,4 +190,4 @@ if __name__ == "__main__": t = threading.Thread(target=listenirc) t.daemon = True t.start() - app.run(host="0.0.0.0", port=5000) \ No newline at end of file + app.run(host="0.0.0.0", port=5000)