Skip to content

Commit daacbd9

Browse files
authored
Refactor variable naming for pattern matching
1 parent 0448c3e commit daacbd9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/DataFrame/IO/Parquet.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,9 @@ readParquetFiles :: FilePath -> IO DataFrame
120120
readParquetFiles path = do
121121
isDir <- doesDirectoryExist path
122122

123-
let pattern =
124-
if isDir
125-
then path </> "*"
126-
else path
123+
let pat = if isDir then path </> "*" else path
127124

128-
matches <- glob pattern
125+
matches <- glob pat
129126

130127
files <- filterM (fmap not . doesDirectoryExist) matches
131128

0 commit comments

Comments
 (0)