Skip to content

Commit b4af95f

Browse files
[autofix.ci] apply automated fixes
1 parent 7a2eace commit b4af95f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

core/api/src/mill/api/Watchable.scala

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package mill.api
88
*/
99
private[mill] sealed trait Watchable
1010
private[mill] object Watchable {
11+
1112
/** A [[Watchable]] that is being watched via polling. */
1213
private[mill] sealed trait Pollable extends Watchable
1314

runner/daemon/src/mill/daemon/MillMain.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ object MillMain {
350350
if (config.watch.value) os.remove(out / OutFiles.millSelectiveExecution)
351351
Watching.watchLoop(
352352
ringBell = config.ringBell.value,
353-
watch = Option.when(config.watch.value)(Watching.WatchArgs(setIdle = setIdle, colors)),
353+
watch = Option.when(config.watch.value)(Watching.WatchArgs(
354+
setIdle = setIdle,
355+
colors
356+
)),
354357
streams = streams,
355358
evaluate = (enterKeyPressed: Boolean, prevState: Option[RunnerState]) => {
356359
adjustJvmProperties(userSpecifiedProperties, initialSystemProperties)

runner/daemon/src/mill/daemon/Watching.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ object Watching {
7474
if (alreadyStale) {
7575
enterKeyPressed = false
7676
} else {
77-
enterKeyPressed = watchAndWait(streams, watchArgs.setIdle, streams.in, watchables, watchArgs.colors)
77+
enterKeyPressed =
78+
watchAndWait(streams, watchArgs.setIdle, streams.in, watchables, watchArgs.colors)
7879
}
7980
}
8081
// QUESTION: this never exits?

0 commit comments

Comments
 (0)