diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..0c968cf --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.9.7 +502ea841d2fa3e7b5dfb2b50a4c4763be6f44cf1 diff --git a/.scalafmt.conf b/.scalafmt.conf index 8cbb542..d6c388f 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,2 +1,2 @@ -version=3.9.6 +version=3.9.7 runner.dialect = "scala213source3" diff --git a/code-gen/src/main/scala/scalapb/grpcweb/GrpcWebServicePrinter.scala b/code-gen/src/main/scala/scalapb/grpcweb/GrpcWebServicePrinter.scala index 27f6409..a8a919b 100644 --- a/code-gen/src/main/scala/scalapb/grpcweb/GrpcWebServicePrinter.scala +++ b/code-gen/src/main/scala/scalapb/grpcweb/GrpcWebServicePrinter.scala @@ -104,7 +104,7 @@ final class GrpcWebServicePrinter( private[this] def clientMethodImpl(m: MethodDescriptor): PrinterEndo = { p => val (maybeObserver, methodName) = (m.streamType match { - case StreamType.Unary => ("", "asyncUnaryCall") + case StreamType.Unary => ("", "asyncUnaryCall") case StreamType.ServerStreaming => (", responseObserver", "asyncServerStreamingCall") case _ => ??? diff --git a/grpcweb/src/main/scala/io/grpc/grpc.scala b/grpcweb/src/main/scala/io/grpc/grpc.scala index 309bd12..437153d 100644 --- a/grpcweb/src/main/scala/io/grpc/grpc.scala +++ b/grpcweb/src/main/scala/io/grpc/grpc.scala @@ -301,7 +301,7 @@ object Status { def valueOf(value: String): Code = { values.find(_.name() == value) match { case Some(code) => code - case _ => + case _ => throw new IllegalArgumentException(s"Unrecognized code: $value") } }