about summary refs log tree commit diff stats
path: root/browse_slack/convert_slack.py
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-10 04:34:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-10 04:34:11 -0700
commit34aba8e6c6f6e85c8a5e9157e1094f162de4932b (patch)
treee6a7de23b0e33b227b3af61c0d639b1663d09ccd /browse_slack/convert_slack.py
parentf37689f932b8e984cc7b7f2bc07d492db2ab1a4c (diff)
downloadmu-34aba8e6c6f6e85c8a5e9157e1094f162de4932b.tar.gz
.
Diffstat (limited to 'browse_slack/convert_slack.py')
-rw-r--r--browse_slack/convert_slack.py4
1 files changed, 1 insertions, 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']):