Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Mar 13, 2019
1 parent 5ff7202 commit 4599659
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ trait FileDataSourceV2 extends TableProvider with DataSourceRegister {
val objectMapper = new ObjectMapper()
Option(map.get("paths")).map { pathStr =>
objectMapper.readValue(pathStr, classOf[Array[String]]).toSeq
}.orElse(Option(map.get("path")).map(Seq(_))).getOrElse {
Nil
}.getOrElse {
Option(map.get("path")).toSeq
}
}
}

0 comments on commit 4599659

Please sign in to comment.