Skip to content

Commit 7e22a7e

Browse files
authored
Update scripts workers to be compatible with Scala 3 (#1352)
1 parent d8b0336 commit 7e22a7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scala/scripts/ScalaPBWorker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ object ScalaPBWorker extends Worker.Interface {
3838

3939
def main(args: Array[String]): Unit = Worker.workerMain(args, ScalaPBWorker)
4040

41-
def work(args: Array[String]) {
41+
def work(args: Array[String]): Unit = {
4242
val code = ProtocBridge.runWithGenerators(protoc, generators, args)
4343
if (code != 0) {
4444
sys.error(s"Exit with code $code")

src/scala/scripts/ScroogeWorker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object ScroogeWorker extends Worker.Interface {
2121
case e: Exception => ()
2222
}
2323

24-
def work(args: Array[String]) {
24+
def work(args: Array[String]): Unit = {
2525
def getIdx(i: Int): List[String] = {
2626
if (args.size > i) {
2727
// bazel worker arguments cannot be empty so we pad to ensure non-empty

0 commit comments

Comments
 (0)