Skip to content

Commit b227b82

Browse files
author
peng
committed
ShapeAPI peek & interrupt also returns this
1 parent ed04d93 commit b227b82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/org/shapesafe/core/shape/ShapeAPI.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ trait ShapeAPI extends VectorOps with MatrixOps {
4343
final def peek(
4444
implicit
4545
reporter: ShapeReporters.PeekShape.Case[_Shape]
46-
): Unit = {}
46+
): this.type = this
4747

4848
final def interrupt(
4949
implicit
5050
reporter: ShapeReporters.InterruptShape.Case[_Shape]
51-
): Unit = {}
51+
): this.type = this
5252

5353
/**
5454
* assign new names

0 commit comments

Comments
 (0)