diff options
author | Alexandru Tache <hadesgames@gmail.com> | 2014-04-08 20:00:47 +0300 |
---|---|---|
committer | Alexandru Tache <hadesgames@gmail.com> | 2014-04-08 20:00:47 +0300 |
commit | 5d68363ac8f7dfe308e638cb7d1bbb610c67dee0 (patch) | |
tree | 564d33a9aaa678aedf44e8e0f7daf78ab69199db | |
parent | 51e543105d60537219a7083db4adf2412cf93547 (diff) | |
download | workbench-5d68363ac8f7dfe308e638cb7d1bbb610c67dee0.tar.gz workbench-5d68363ac8f7dfe308e638cb7d1bbb610c67dee0.tar.bz2 workbench-5d68363ac8f7dfe308e638cb7d1bbb610c67dee0.zip |
Replaced map with foreach
-rw-r--r-- | Plugin.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugin.scala b/Plugin.scala index 9d7012a..a363b99 100644 --- a/Plugin.scala +++ b/Plugin.scala @@ -64,7 +64,7 @@ object Plugin extends sbt.Plugin with SimpleRoutingApp{ localUrl := ("localhost", 12345), updatedJS := { var files: List[String] = Nil - ((crossTarget in Compile).value * "*.js").get.map { + ((crossTarget in Compile).value * "*.js").get.foreach { (x: File) => streams.value.log.info("workbench: Checking " + x.getName) FileFunction.cached(streams.value.cacheDirectory / x.getName, FilesInfo.lastModified, FilesInfo.lastModified) { @@ -104,7 +104,7 @@ object Plugin extends sbt.Plugin with SimpleRoutingApp{ if (changed.length > 0) { pubSub ! Json.arr("clear") - changed.map { + changed.foreach { path => streams.value.log.info("workbench: Refreshing " + path) pubSub ! Json.arr( |