Skip to content

Commit 06ad75d

Browse files
committed
Reformat with scalafmt 3.7.0
Executed command: scalafmt --non-interactive
1 parent b34b7ad commit 06ad75d

File tree

7 files changed

+19
-23
lines changed

7 files changed

+19
-23
lines changed

keywords-AsynchronousIo/src/main/scala/com/thoughtworks/dsl/keywords/AsynchronousIo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ trait AsynchronousIo[+Value] extends Any with Dsl.Keyword.Trait {
9494

9595
object AsynchronousIo {
9696
given [Keyword <: AsynchronousIo[Value], Value]: IsKeyword[Keyword, Value]
97-
with {}
97+
with {}
9898
final case class Connect(
9999
socket: AsynchronousSocketChannel,
100100
remote: SocketAddress

keywords-Each/src/main/scala/com/thoughtworks/dsl/keywords/Each.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ object Each {
8787
object ToKeyword {
8888

8989
def apply[ComprehensionOrKeyword, Keyword]: (
90-
ComprehensionOrKeyword => Keyword
90+
ComprehensionOrKeyword => Keyword
9191
) =:= ToKeyword[ComprehensionOrKeyword, Keyword] = summon
9292

9393
given [
@@ -105,7 +105,7 @@ object Each {
105105
): ToKeyword[Dsl.For.Do.FlatForeach[
106106
Upstream,
107107
UpstreamElement,
108-
Nested,
108+
Nested
109109
], FlatMap[
110110
UpstreamKeyword,
111111
FlatMap[Each[
@@ -169,7 +169,7 @@ object Each {
169169
]
170170
): ToKeyword[Dsl.For.Do.Foreach[
171171
Upstream,
172-
UpstreamElement,
172+
UpstreamElement
173173
], FlatMap[
174174
UpstreamKeyword,
175175
Pure[Unit]
@@ -268,13 +268,13 @@ object Each {
268268
isUpstreamKeyword: Dsl.IsKeyword[Upstream, UpstreamElement]
269269
): ToKeyword[Dsl.For.Do.Foreach[
270270
Upstream,
271-
UpstreamElement,
271+
UpstreamElement
272272
], FlatMap[
273273
Upstream,
274274
Pure[Unit]
275275
]] = Pure.liftCo[[X] =>> ToKeyword[Dsl.For.Do.Foreach[
276276
Upstream,
277-
UpstreamElement,
277+
UpstreamElement
278278
], FlatMap[
279279
Upstream,
280280
X
@@ -317,7 +317,7 @@ object Each {
317317
): ToKeyword[Dsl.For.Do.FlatForeach[
318318
Upstream,
319319
UpstreamElement,
320-
Nested,
320+
Nested
321321
], FlatMap[
322322
Upstream,
323323
NestedKeyword

keywords-Each/src/test/scala/com/thoughtworks/dsl/keywords/EachSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.thoughtworks.dsl
22
package keywords
33

4-
54
import com.thoughtworks.dsl.macros.Reset.Default.*
65
import org.scalatest.freespec.AnyFreeSpec
76
import org.scalatest.matchers.should.Matchers

keywords-Each/src/test/scala/com/thoughtworks/dsl/keywords/ForEachSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.thoughtworks.dsl.keywords
22

3-
43
import org.scalatest.freespec.AnyFreeSpec
54
import com.thoughtworks.dsl.macros.Reset.Default.*
65
import org.scalatest.matchers.should.Matchers

keywords-TryCatch/src/main/scala/com/thoughtworks/dsl/keywords/TryCatch.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ object TryCatch extends TryCatch.LowPriority0 {
2727
Dsl.Searching[CaseKeyword, BlockDomain, Value]
2828
) ?=> Dsl.Composed[TryCatch[BlockKeyword, CaseKeyword], OuterDomain, Value]
2929
def DslComposer[OuterDomain, Value, BlockDomain]: (
30-
[
30+
[
31+
BlockKeyword,
32+
CaseKeyword
33+
] => (
34+
Dsl.Searching[BlockKeyword, BlockDomain, Value],
35+
Dsl.Searching[CaseKeyword, BlockDomain, Value]
36+
) ?=> Dsl.Composed[TryCatch[
3137
BlockKeyword,
3238
CaseKeyword
33-
] => (
34-
Dsl.Searching[BlockKeyword, BlockDomain, Value],
35-
Dsl.Searching[CaseKeyword, BlockDomain, Value]
36-
) ?=> Dsl.Composed[TryCatch[
37-
BlockKeyword,
38-
CaseKeyword
39-
], OuterDomain, Value]
39+
], OuterDomain, Value]
4040
) =:= DslComposer[OuterDomain, Value, BlockDomain] = summon
4141

4242
private[TryCatch] trait LowPriority0:

keywords-Yield/src/test/scala/com/thoughtworks/dsl/keywords/YieldSpec.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,6 @@ object YieldSpec extends TestSuite {
407407
}
408408
}
409409

410-
411-
412410
import scala.annotation.tailrec
413411
import scala.collection.{LinearSeq, SeqView}
414412
import scala.runtime.NonLocalReturnControl

package/src/main/scala/com/thoughtworks/dsl/package.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ package com.thoughtworks
189189
*
190190
* {{{
191191
* import com.thoughtworks.dsl.keywords.Yield
192-
*
192+
*
193193
* import scala.util.parsing.json._
194194
* def parseAndLog1(jsonContent: String, defaultValue: JSONType): Stream[String] !! JSONType = { (callback: JSONType => Stream[String]) =>
195195
* !Yield(s"I am going to parse the JSON text $jsonContent...")
@@ -229,7 +229,7 @@ package com.thoughtworks
229229
*
230230
* {{{
231231
* import com.thoughtworks.dsl.keywords.Yield
232-
*
232+
*
233233
* import scala.util.parsing.json._
234234
* def parseAndLog2(jsonContent: String, defaultValue: JSONType): Stream[String] !! JSONType = _ {
235235
* !Yield(s"I am going to parse the JSON text $jsonContent...")
@@ -263,7 +263,7 @@ package com.thoughtworks
263263
*
264264
* {{{
265265
* import com.thoughtworks.dsl.keywords.Yield
266-
*
266+
*
267267
* import scala.util.parsing.json._
268268
* def parseAndLog3(jsonContent: String, defaultValue: JSONType): Stream[String] !! JSONType = !! {
269269
* !Yield(s"I am going to parse the JSON text $jsonContent...")
@@ -308,7 +308,7 @@ package com.thoughtworks
308308
* `Stream[String] !! Throwable !! Int` domain.
309309
*
310310
* {{{
311-
*
311+
*
312312
* import com.thoughtworks.dsl.keywords.Using
313313
* import com.thoughtworks.dsl.keywords.Yield
314314
* import com.thoughtworks.dsl.keywords.Shift._

0 commit comments

Comments
 (0)