mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 14:17:13 +02:00
Adds null guard
This commit is contained in:
@@ -148,7 +148,7 @@ private[sbt] class CachedResolutionResolveCache() {
|
||||
val dynamicGraphPath = dynamicGraphDirectory / todayStr / logicalClock.toString / pathOrg / pathName / pathRevision / "graphs" / "graph.json"
|
||||
def cleanDynamicGraph(): Unit =
|
||||
{
|
||||
val list = (dynamicGraphDirectory listFiles DirectoryFilter).toList
|
||||
val list = IO.listFiles(dynamicGraphDirectory, DirectoryFilter).toList
|
||||
list filterNot { d =>
|
||||
(d.getName == todayStr) || (d.getName == tomorrowStr) || (d.getName == yesterdayStr)
|
||||
} foreach { d =>
|
||||
|
||||
Reference in New Issue
Block a user