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

2
.idea/kotlinc.xml generated
View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KotlinJpsPluginSettings">
<option name="version" value="1.8.20" />
<option name="version" value="1.8.22" />
</component>
</project>

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
}