Code cleanup.
This commit is contained in:
parent
dfb60096e9
commit
f820434211
1 changed files with 2 additions and 2 deletions
|
@ -211,8 +211,8 @@ open class PinboardPoster() {
|
|||
try {
|
||||
val document = factory.newDocumentBuilder().parse(InputSource(StringReader(response)))
|
||||
|
||||
val code = document.getElementsByTagName(
|
||||
"result")?.item(0)?.attributes?.getNamedItem("code")?.nodeValue
|
||||
val code = document.getElementsByTagName("result")?.item(0)?.attributes?.getNamedItem(
|
||||
"code")?.nodeValue
|
||||
|
||||
if (!code.isNullOrBlank()) {
|
||||
throw IOException("An error has occurred while executing $method: $code")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue