Skip to content

Commit

Permalink
optimise imports in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
stokado committed Dec 15, 2024
1 parent c92ad40 commit 7b891b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fullstack-mpp/src/frontendMain/kotlin/FrontendCode.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package io.ktor.samples.fullstack.frontend

import io.ktor.client.*
import io.ktor.client.call.body
import io.ktor.client.engine.js.*
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.samples.fullstack.common.*
import kotlinx.browser.document
import kotlinx.browser.window
import kotlinx.browser.*

Check warning

Code scanning / detekt

Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Warning

kotlinx.browser.* is a wildcard import. Replace it with fully qualified imports.
import kotlinx.coroutines.*

private val client = HttpClient(Js)
Expand Down

0 comments on commit 7b891b0

Please sign in to comment.