Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
usbharu 2023-10-31 16:40:31 +09:00 committed by GitHub
parent 85337420cd
commit eecfde0960
2 changed files with 0 additions and 8 deletions

View File

@ -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()}"
} }
} }

View File

@ -108,8 +108,6 @@ class APRequestServiceImpl(
null null
} }
logger.trace( logger.trace(
""" """
| |