From 34aba8e6c6f6e85c8a5e9157e1094f162de4932b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 10 Aug 2021 04:34:11 -0700 Subject: . --- browse_slack/convert_slack.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/browse_slack/convert_slack.py b/browse_slack/convert_slack.py index af2fed9a..13604e9f 100644 --- a/browse_slack/convert_slack.py +++ b/browse_slack/convert_slack.py @@ -72,9 +72,7 @@ def contents(filename): def filenames(dir): for filename in sorted(listdir(dir)): - result = join(dir, filename) - if isfile(result): - yield result + yield join(dir, filename) for channel in json.load(open('channels.json')): for filename in filenames(channel['name']): -- cgit 1.4.1-2-gfad0