mirror of https://github.com/usbharu/Hideout.git
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
85337420cd
commit
eecfde0960
|
@ -9,7 +9,6 @@ sealed class ActivityPubResponse(
|
||||||
val contentType: ContentType = ContentType.Application.Activity
|
val contentType: ContentType = ContentType.Application.Activity
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
if (this === other) return true
|
if (this === other) return true
|
||||||
if (other !is ActivityPubResponse) return false
|
if (other !is ActivityPubResponse) return false
|
||||||
|
@ -37,7 +36,6 @@ class ActivityPubStringResponse(
|
||||||
contentType: ContentType = ContentType.Application.Activity
|
contentType: ContentType = ContentType.Application.Activity
|
||||||
) : ActivityPubResponse(httpStatusCode, contentType) {
|
) : ActivityPubResponse(httpStatusCode, contentType) {
|
||||||
|
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
if (this === other) return true
|
if (this === other) return true
|
||||||
if (other !is ActivityPubStringResponse) return false
|
if (other !is ActivityPubStringResponse) return false
|
||||||
|
@ -54,8 +52,6 @@ class ActivityPubStringResponse(
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "ActivityPubStringResponse(message='$message') ${super.toString()}"
|
return "ActivityPubStringResponse(message='$message') ${super.toString()}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ActivityPubObjectResponse(
|
class ActivityPubObjectResponse(
|
||||||
|
@ -79,6 +75,4 @@ class ActivityPubObjectResponse(
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return "ActivityPubObjectResponse(message=$message) ${super.toString()}"
|
return "ActivityPubObjectResponse(message=$message) ${super.toString()}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,8 +108,6 @@ class APRequestServiceImpl(
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
logger.trace(
|
logger.trace(
|
||||||
"""
|
"""
|
||||||
|
|
|
|
||||||
|
|
Loading…
Reference in New Issue