Skip to content

Commit

Permalink
Fixes Scala style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed May 18, 2015
1 parent 6a08b02 commit b84612a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ abstract class HadoopFsRelation private[sql](maybePartitionSpec: Option[Partitio

var leafDirs = mutable.Map.empty[Path, FileStatus]

def refresh() = {
def refresh(): Unit = {
def listLeafFilesAndDirs(fs: FileSystem, status: FileStatus): Set[FileStatus] = {
val (dirs, files) = fs.listStatus(status.getPath).partition(_.isDir)
val leafDirs = if (dirs.isEmpty) Set(status) else Set.empty[FileStatus]
Expand Down

0 comments on commit b84612a

Please sign in to comment.