Skip to content

Commit c2debfa

Browse files
authored
Update changelog.main.kts
1 parent 092f2ed commit c2debfa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/changelog.main.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ val argsKeyToValue = args
8888
.filter { it.contains("=") }
8989
.associate { it.substringBefore("=") to it.substringAfter("=") }
9090

91-
val token = argsKeyToValue["token"]
92-
if (token == null) {
93-
println("To increase the rate limit, specify token (https://github.com/settings/tokens), adding token=yourtoken in the end")
91+
val token = argsKeyToValue["token"].let {
92+
if (it == null) {
93+
println("To increase the rate limit, specify token (https://github.com/settings/tokens), adding token=yourtoken in the end")
94+
null
95+
} else if (it.isBlank()) {
96+
null
97+
}
9498
}
9599

96100
println()

0 commit comments

Comments
 (0)