Skip to content

Commit 220391b

Browse files
chore: rebuild project due to codegen change (#40)
1 parent 11d0f1d commit 220391b

File tree

1 file changed

+2
-7
lines changed
  • onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core

1 file changed

+2
-7
lines changed

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/Utils.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@ import java.util.Collections
99
import org.onebusaway.errors.OnebusawaySdkInvalidDataException
1010

1111
@JvmSynthetic
12-
internal fun <T : Any> T?.getOrThrow(name: String): T {
13-
if (this == null) {
14-
throw OnebusawaySdkInvalidDataException("'${name}' is not present")
15-
}
16-
17-
return this
18-
}
12+
internal fun <T : Any> T?.getOrThrow(name: String): T =
13+
this ?: throw OnebusawaySdkInvalidDataException("`${name}` is not present")
1914

2015
@JvmSynthetic
2116
internal fun <T> List<T>.toUnmodifiable(): List<T> {

0 commit comments

Comments
 (0)