Skip to content

Commit 1279228

Browse files
committed
Reformat with scalafmt 3.8.6
Executed command: scalafmt --non-interactive
1 parent 0b3830f commit 1279228

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ object os extends Module {
189189
object testJarWriter extends JavaModule
190190
object testJarReader extends JavaModule
191191
object testJarExit extends JavaModule
192-
object testSpawnExitHook extends ScalaModule{
192+
object testSpawnExitHook extends ScalaModule {
193193
def scalaVersion = OsJvmModule.this.scalaVersion()
194194
def moduleDeps = Seq(OsJvmModule.this)
195195
}

os/src-native/ResourceApi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
package os
1+
package os
22
trait ResourceApi

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
@@ -334,7 +334,9 @@ case class proc(command: Shellable*) {
334334
override def run(): Unit = {
335335
while (proc.wrapped.isAlive) Thread.sleep(1)
336336
try Runtime.getRuntime().removeShutdownHook(t)
337-
catch { case e: Throwable => /*do nothing*/ }
337+
catch {
338+
case e: Throwable => /*do nothing*/
339+
}
338340
}
339341
}
340342
)

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
for (p <- paths) {
3333
if (os.isDir(p, followLinks = false)) {
3434
try os.walk.stream(p).foreach(p => if (filter(p)) nestedPaths.append(p))
35-
catch { case NonFatal(_) => /*do nothing*/ }
35+
catch {
36+
case NonFatal(_) => /*do nothing*/
37+
}
3638
}
3739
}
3840
onEvent((paths.iterator ++ nestedPaths.iterator).toSet)

0 commit comments

Comments
 (0)