From 5d68363ac8f7dfe308e638cb7d1bbb610c67dee0 Mon Sep 17 00:00:00 2001 From: Alexandru Tache Date: Tue, 8 Apr 2014 20:00:47 +0300 Subject: Replaced map with foreach --- Plugin.scala | 4 ++-- 1 file 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( -- cgit v1.2.3