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
2dd10890da
commit
6fa136d618
|
@ -7,7 +7,6 @@ class Nodeinfo {
|
|||
protected constructor()
|
||||
}
|
||||
|
||||
|
||||
class Links {
|
||||
var rel: String? = null
|
||||
var href: String? = null
|
||||
|
|
|
@ -31,6 +31,7 @@ data class User private constructor(
|
|||
class UserBuilder(private val characterLimit: CharacterLimit, private val applicationConfig: ApplicationConfig) {
|
||||
|
||||
private val logger = LoggerFactory.getLogger(UserBuilder::class.java)
|
||||
|
||||
@Suppress("LongParameterList", "FunctionMinLength", "LongMethod")
|
||||
fun of(
|
||||
id: Long,
|
||||
|
|
|
@ -19,7 +19,6 @@ interface InstanceService {
|
|||
suspend fun createNewInstance(instanceCreateDto: InstanceCreateDto): Instance
|
||||
}
|
||||
|
||||
|
||||
@Service
|
||||
class InstanceServiceImpl(
|
||||
private val instanceRepository: InstanceRepository,
|
||||
|
@ -42,7 +41,6 @@ class InstanceServiceImpl(
|
|||
val nodeinfo = objectMapper.readValue(nodeinfoJson, Nodeinfo::class.java)
|
||||
val nodeinfoPathMap = nodeinfo.links.associate { it.rel to it.href }
|
||||
|
||||
|
||||
for ((key, value) in nodeinfoPathMap) {
|
||||
when (key) {
|
||||
"http://nodeinfo.diaspora.software/ns/schema/2.0" -> {
|
||||
|
|
Loading…
Reference in New Issue