Skip to content

Commit e71126a

Browse files
committed
fix lint
Signed-off-by: Ryan Nett <[email protected]>
1 parent 70823b2 commit e71126a

File tree

1 file changed

+4
-4
lines changed
  • tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/main/kotlin/org/tensorflow

1 file changed

+4
-4
lines changed

tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/main/kotlin/org/tensorflow/OperandHelpers.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import org.tensorflow.ndarray.Shaped
2424
*
2525
* Throws [IllegalStateException] on failure.
2626
*/
27-
public fun <T: Shaped> T.requireShape(shape: Shape): T = apply{
28-
check(this.shape().isCompatibleWith(shape)){
27+
public fun <T : Shaped> T.requireShape(shape: Shape): T = apply {
28+
check(this.shape().isCompatibleWith(shape)) {
2929
"Shape ${this.shape()} is not compatible with the required shape $shape"
3030
}
3131
}
@@ -35,8 +35,8 @@ public fun <T: Shaped> T.requireShape(shape: Shape): T = apply{
3535
*
3636
* Throws [IllegalStateException] on failure.
3737
*/
38-
public fun <T: Shaped> T.requireShape(vararg shape: Long): T = apply{
39-
check(this.shape().isCompatibleWith(Shape.of(*shape))){
38+
public fun <T : Shaped> T.requireShape(vararg shape: Long): T = apply {
39+
check(this.shape().isCompatibleWith(Shape.of(*shape))) {
4040
"Shape ${this.shape()} is not compatible with the required shape $shape"
4141
}
4242
}

0 commit comments

Comments
 (0)