Upgraded to Kotlin 1.5.31 and JDK 17.

This commit is contained in:
Erik C. Thauvin 2021-10-01 22:39:53 -07:00
parent 3dd75fa575
commit 2cd3b9cd61
16 changed files with 514 additions and 347 deletions

View file

@ -237,7 +237,7 @@ open class PinboardPoster() {
}
private fun cleanEndPoint(method: String): String {
return if (apiEndPoint.endsWith('/')) {
return if (apiEndPoint.last() == '/') {
"$apiEndPoint$method"
} else {
"$apiEndPoint/$method"