Skip to content

Commit 7a65773

Browse files
committed
Reformat with scalafmt 3.8.6
Executed command: scalafmt --non-interactive
1 parent a895d28 commit 7a65773

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ object os extends Module {
184184
object testJarWriter extends JavaModule
185185
object testJarReader extends JavaModule
186186
object testJarExit extends JavaModule
187-
object testSpawnExitHook extends ScalaModule{
187+
object testSpawnExitHook extends ScalaModule {
188188
def scalaVersion = OsJvmModule.this.scalaVersion()
189189
def moduleDeps = Seq(OsJvmModule.this)
190190
}

os/src/FileOps.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,15 @@ object remove extends Function1[Path, Boolean] {
339339
if (Files.isDirectory(nioTarget, LinkOption.NOFOLLOW_LINKS)) {
340340
for (p <- walk.stream(target, preOrder = false)) {
341341
try remove(p)
342-
catch { case e: Throwable if ignoreErrors => /*ignore*/ }
342+
catch {
343+
case e: Throwable if ignoreErrors => /*ignore*/
344+
}
343345
}
344346
}
345347
try Files.delete(nioTarget)
346-
catch { case e: Throwable if ignoreErrors => /*ignore*/ }
348+
catch {
349+
case e: Throwable if ignoreErrors => /*ignore*/
350+
}
347351
}
348352
}
349353
}

os/src/ProcessOps.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ case class proc(command: Shellable*) {
332332
override def run(): Unit = {
333333
while (proc.wrapped.isAlive) Thread.sleep(1)
334334
try Runtime.getRuntime().removeShutdownHook(t)
335-
catch { case e: Throwable => /*do nothing*/ }
335+
catch {
336+
case e: Throwable => /*do nothing*/
337+
}
336338
}
337339
}
338340
)

os/watch/src/FSEventsWatcher.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ class FSEventsWatcher(
3232
else {
3333
existingFolders.add(p)
3434
try os.walk.stream(p).foreach(nestedPaths.append(_))
35-
catch { case e: Throwable => /*do nothing*/ }
35+
catch {
36+
case e: Throwable => /*do nothing*/
37+
}
3638
}
3739
}
3840
onEvent((paths ++ nestedPaths).toSet)

0 commit comments

Comments
 (0)