mirror of
https://github.com/dalbodeule/sh0rt.kr-pdns.git
synced 2025-08-10 21:41:13 +00:00
useless code fix
This commit is contained in:
@@ -66,7 +66,6 @@ class PowerDNSAPIClient() {
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
val str = response.body?.string()
|
||||
println(str)
|
||||
val error = gson.fromJson(str, PowerDNSAPIError::class.java)
|
||||
throw PowerDNSAPIException(error)
|
||||
}
|
||||
@@ -99,7 +98,6 @@ class PowerDNSAPIClient() {
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
val str = response.body?.string()
|
||||
println(str)
|
||||
val error = gson.fromJson(str, PowerDNSAPIError::class.java)
|
||||
throw PowerDNSAPIException(error)
|
||||
}
|
||||
@@ -132,7 +130,6 @@ class PowerDNSAPIClient() {
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
val str = response.body?.string()
|
||||
println(str)
|
||||
val error = gson.fromJson(str, PowerDNSAPIError::class.java)
|
||||
throw PowerDNSAPIException(error)
|
||||
}
|
||||
@@ -159,7 +156,6 @@ class PowerDNSAPIClient() {
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
val str = response.body?.string()
|
||||
println(str)
|
||||
val error = gson.fromJson(str, PowerDNSAPIError::class.java)
|
||||
throw PowerDNSAPIException(error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user