From: David ‘Bombe’ Roden Date: Sat, 9 Mar 2019 16:50:33 +0000 (+0100) Subject: 🎨 Reformat, optimize imports X-Git-Tag: v79^2~77 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0dd4bb42d2aa7e67c0750415a31e75bf9f4284d7;p=Sone.git 🎨 Reformat, optimize imports --- diff --git a/src/main/kotlin/net/pterodactylus/sone/template/LinkedElementRenderFilter.kt b/src/main/kotlin/net/pterodactylus/sone/template/LinkedElementRenderFilter.kt index 1ecc0dd..b11dc79 100644 --- a/src/main/kotlin/net/pterodactylus/sone/template/LinkedElementRenderFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/template/LinkedElementRenderFilter.kt @@ -1,17 +1,15 @@ package net.pterodactylus.sone.template -import net.pterodactylus.sone.core.LinkedElement -import net.pterodactylus.sone.utils.asTemplate -import net.pterodactylus.util.template.Filter -import net.pterodactylus.util.template.TemplateContext -import net.pterodactylus.util.template.TemplateContextFactory -import java.io.StringWriter -import javax.inject.Inject +import net.pterodactylus.sone.core.* +import net.pterodactylus.sone.utils.* +import net.pterodactylus.util.template.* +import java.io.* +import javax.inject.* /** * Renders all kinds of [LinkedElement]s. */ -class LinkedElementRenderFilter @Inject constructor(private val templateContextFactory: TemplateContextFactory): Filter { +class LinkedElementRenderFilter @Inject constructor(private val templateContextFactory: TemplateContextFactory) : Filter { override fun format(templateContext: TemplateContext?, data: Any?, parameters: Map?) = when {