Skip to content

Commit efbcdb4

Browse files
committed
Remove the checkNotNull
1 parent a818070 commit efbcdb4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

settings.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ dependencyResolutionManagement {
66
credentials {
77
val caplinUsername: String? by settings
88
val caplinPassword: String? by settings
9-
username = checkNotNull(
10-
caplinUsername ?: System.getenv("CAPLIN_USERNAME"),
11-
) { "Missing caplinUsername property or CAPLIN_USERNAME environment variable" }
12-
password = checkNotNull(
13-
caplinPassword ?: System.getenv("CAPLIN_PASSWORD"),
14-
) { "Missing caplinPassword property or CAPLIN_PASSWORD environment variable" }
9+
username = caplinUsername ?: System.getenv("CAPLIN_USERNAME")
10+
password = caplinPassword ?: System.getenv("CAPLIN_PASSWORD")
1511
}
1612
}
1713
}

0 commit comments

Comments
 (0)