Skip to content

Commit 51e4fd1

Browse files
[autofix.ci] apply automated fixes
1 parent 63c10ed commit 51e4fd1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

libs/jvmlib/src/mill/javalib/RunModule.scala

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,21 @@ trait RunModule extends WithJvmWorkerModule with RunModuleApi {
110110
/**
111111
* Runs this module's code in a subprocess and waits for it to finish
112112
*/
113-
def run(args: Task[Args] = Task.Anon(Args())): Task.Command[Unit] = Task.Command(exclusive = true) {
114-
runForkedTask(finalMainClass, args)()
115-
}
113+
def run(args: Task[Args] = Task.Anon(Args())): Task.Command[Unit] =
114+
Task.Command(exclusive = true) {
115+
runForkedTask(finalMainClass, args)()
116+
}
116117

117118
/**
118119
* Runs this module's code in-process within an isolated classloader. This is
119120
* faster than `run`, but in exchange you have less isolation between runs
120121
* since the code can dirty the parent Mill process and potentially leave it
121122
* in a bad state.
122123
*/
123-
def runLocal(args: Task[Args] = Task.Anon(Args())): Task.Command[Unit] = Task.Command(exclusive = true) {
124-
runLocalTask(finalMainClass, args)()
125-
}
124+
def runLocal(args: Task[Args] = Task.Anon(Args())): Task.Command[Unit] =
125+
Task.Command(exclusive = true) {
126+
runLocalTask(finalMainClass, args)()
127+
}
126128

127129
/**
128130
* Same as `run`, but lets you specify a main class to run

0 commit comments

Comments
 (0)