Fixed code smell
This commit is contained in:
parent
45e2915a01
commit
3f96639b9e
2 changed files with 2 additions and 2 deletions
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
|
@ -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>
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue