Fixed code smell

This commit is contained in:
Erik C. Thauvin 2023-06-29 12:36:09 -07:00
parent 45e2915a01
commit 3f96639b9e
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ open class Bitlinks(private val accessToken: String) {
private fun JSONObject.getString(key: String, default: String): String {
return if (this.has(key))
this.get(key).toString()
this[key].toString()
else
default
}