This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new 6d565ee5 Unwrap single string interpolation syntax
6d565ee5 is described below

commit 6d565ee5f4851d9c7bb3546f684cceeb23b9eb73
Author: Matthew de Detrich <[email protected]>
AuthorDate: Sat May 27 11:52:13 2023 +0200

    Unwrap single string interpolation syntax
---
 benchmarks/src/main/scala/org/apache/pekko/grpc/BenchRunner.scala   | 2 +-
 .../scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala    | 2 +-
 project/CopyrightHeader.scala                                       | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/benchmarks/src/main/scala/org/apache/pekko/grpc/BenchRunner.scala 
b/benchmarks/src/main/scala/org/apache/pekko/grpc/BenchRunner.scala
index a6d4b7f4..f13a963a 100644
--- a/benchmarks/src/main/scala/org/apache/pekko/grpc/BenchRunner.scala
+++ b/benchmarks/src/main/scala/org/apache/pekko/grpc/BenchRunner.scala
@@ -40,7 +40,7 @@ object BenchRunner {
         result.getParams.getParamsKeys.asScala.map(key => 
s"$key=${result.getParams.getParam(key)}").mkString("_")
       val score = result.getAggregatedResult.getPrimaryResult.getScore.round
       val unit = result.getAggregatedResult.getPrimaryResult.getScoreUnit
-      s"\t${bench}_${params}\t$score\t$unit"
+      s"\t${bench}_$params\t$score\t$unit"
     }
 
     report.toList.sorted.foreach(println)
diff --git 
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
 
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
index db3bdd2b..3e32b1f8 100644
--- 
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
+++ 
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
@@ -153,7 +153,7 @@ abstract class AbstractGenerateMojo @Inject() 
(buildContext: BuildContext) exten
       if (protoDir.exists()) {
         directoryFound = true
         // generated sources should be compiled
-        val generatedSourcesDir = 
s"${outputDirectory}/pekko-grpc${chosenLanguage.targetDirSuffix}"
+        val generatedSourcesDir = 
s"$outputDirectory/pekko-grpc${chosenLanguage.targetDirSuffix}"
         val compileSourceRoot = {
           val generatedSourcesFile = new File(generatedSourcesDir)
           if (!generatedSourcesFile.isAbsolute()) {
diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index 9e5f0f51..d17b58c2 100644
--- a/project/CopyrightHeader.scala
+++ b/project/CopyrightHeader.scala
@@ -57,7 +57,7 @@ object CopyrightHeader extends AutoPlugin {
         case Some(currentText) if 
isOnlyLightbendCopyrightAnnotated(currentText) =>
           HeaderCommentStyle.twirlStyleBlockComment.commentCreator(text, 
existingText) + NewLine * 2 + currentText
         case Some(currentText) =>
-          throw new IllegalStateException(s"Unable to detect copyright for 
header: [${currentText}]")
+          throw new IllegalStateException(s"Unable to detect copyright for 
header: [$currentText]")
         case None =>
           HeaderCommentStyle.twirlStyleBlockComment.commentCreator(text, 
existingText)
       }
@@ -74,7 +74,7 @@ object CopyrightHeader extends AutoPlugin {
         case Some(currentText) if 
isOnlyLightbendCopyrightAnnotated(currentText) =>
           HeaderCommentStyle.cStyleBlockComment.commentCreator(text, 
existingText) + NewLine * 2 + currentText
         case Some(currentText) =>
-          throw new IllegalStateException(s"Unable to detect copyright for 
header: [${currentText}]")
+          throw new IllegalStateException(s"Unable to detect copyright for 
header: [$currentText]")
         case None =>
           HeaderCommentStyle.cStyleBlockComment.commentCreator(text, 
existingText)
       }
@@ -92,7 +92,7 @@ object CopyrightHeader extends AutoPlugin {
         case Some(currentText) if 
isOnlyLightbendCopyrightAnnotated(currentText) =>
           HeaderCommentStyle.hashLineComment.commentCreator(apacheSpdxHeader, 
existingText) + NewLine * 2 + currentText
         case Some(currentText) =>
-          throw new IllegalStateException(s"Unable to detect copyright for 
header: [${currentText}]")
+          throw new IllegalStateException(s"Unable to detect copyright for 
header: [$currentText]")
         case None =>
           HeaderCommentStyle.hashLineComment.commentCreator(apacheSpdxHeader, 
existingText)
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to