useless code fix

This commit is contained in:
dalbodeule 2024-06-10 15:07:53 +09:00
parent d70bb49a14
commit 62adb80d51
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -66,7 +66,6 @@ class PowerDNSAPIClient() {
val response = client.newCall(request).execute() val response = client.newCall(request).execute()
if(!response.isSuccessful) { if(!response.isSuccessful) {
val str = response.body?.string() val str = response.body?.string()
println(str)
val error = gson.fromJson(str, PowerDNSAPIError::class.java) val error = gson.fromJson(str, PowerDNSAPIError::class.java)
throw PowerDNSAPIException(error) throw PowerDNSAPIException(error)
} }
@ -99,7 +98,6 @@ class PowerDNSAPIClient() {
val response = client.newCall(request).execute() val response = client.newCall(request).execute()
if(!response.isSuccessful) { if(!response.isSuccessful) {
val str = response.body?.string() val str = response.body?.string()
println(str)
val error = gson.fromJson(str, PowerDNSAPIError::class.java) val error = gson.fromJson(str, PowerDNSAPIError::class.java)
throw PowerDNSAPIException(error) throw PowerDNSAPIException(error)
} }
@ -132,7 +130,6 @@ class PowerDNSAPIClient() {
val response = client.newCall(request).execute() val response = client.newCall(request).execute()
if(!response.isSuccessful) { if(!response.isSuccessful) {
val str = response.body?.string() val str = response.body?.string()
println(str)
val error = gson.fromJson(str, PowerDNSAPIError::class.java) val error = gson.fromJson(str, PowerDNSAPIError::class.java)
throw PowerDNSAPIException(error) throw PowerDNSAPIException(error)
} }
@ -159,7 +156,6 @@ class PowerDNSAPIClient() {
val response = client.newCall(request).execute() val response = client.newCall(request).execute()
if(!response.isSuccessful) { if(!response.isSuccessful) {
val str = response.body?.string() val str = response.body?.string()
println(str)
val error = gson.fromJson(str, PowerDNSAPIError::class.java) val error = gson.fromJson(str, PowerDNSAPIError::class.java)
throw PowerDNSAPIException(error) throw PowerDNSAPIException(error)
} }