Skip to content

Commit 94879a8

Browse files
committed
fix some code style
1 parent 1ec20a5 commit 94879a8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileIndexSuite.scala

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,14 @@ class FileIndexSuite extends SharedSQLContext {
186186
val fs = dirPath.getFileSystem(spark.sessionState.newHadoopConf())
187187
val catalog =
188188
new InMemoryFileIndex(spark, Seq(dirPath), Map.empty, None, fileStatusCache) {
189-
def leafFilePaths: Seq[Path] = leafFiles.keys.toSeq
190-
def leafDirPaths: Seq[Path] = leafDirToChildrenFiles.keys.toSeq
191-
}
192-
193-
assert(catalog.leafDirPaths.isEmpty)
194-
assert(catalog.leafFilePaths.isEmpty)
189+
def leafFilePaths: Seq[Path] = leafFiles.keys.toSeq
190+
def leafDirPaths: Seq[Path] = leafDirToChildrenFiles.keys.toSeq
191+
}
195192

196193
val file = new File(dir, "text.txt")
197194
stringToFile(file, "text")
195+
assert(catalog.leafDirPaths.isEmpty)
196+
assert(catalog.leafFilePaths.isEmpty)
198197

199198
catalog.refresh()
200199

0 commit comments

Comments
 (0)