Skip to content

Commit 29b06e5

Browse files
committed
Use _ for unused excpetions
1 parent 86e8745 commit 29b06e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typedrest/src/main/kotlin/net/typedrest/errors/DefaultErrorHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ open class DefaultErrorHandler : ErrorHandler {
3434
return try {
3535
val decoded = Json.decodeFromString<JsonErrorResponse>(body.string())
3636
return decoded.message ?: decoded.details
37-
} catch (e: SerializationException) {
37+
} catch (_: SerializationException) {
3838
null
3939
}
4040
}

typedrest/src/main/kotlin/net/typedrest/links/HalLinkExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class HalLinkExtractor : LinkExtractor {
1919
.links.map { (rel, halLink) ->
2020
Link(rel, halLink.href, halLink.title, halLink.templated)
2121
}
22-
} catch (e: SerializationException) {
22+
} catch (_: SerializationException) {
2323
emptyList()
2424
}
2525

0 commit comments

Comments
 (0)