Skip to content

Commit 15fe20a

Browse files
committed
Removed sealed interface from multipart extras class
This should let us evolve the interface in the future without causing backwards incompatible issues.
1 parent bcca356 commit 15fe20a

File tree

1 file changed

+1
-4
lines changed
  • backend/kobweb-api/src/main/kotlin/com/varabyte/kobweb/api/http

1 file changed

+1
-4
lines changed

backend/kobweb-api/src/main/kotlin/com/varabyte/kobweb/api/http/Multipart.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ interface Multipart {
4444
/**
4545
* Extra values beyond the common set, provided specifically based the type of part that we are dealing with.
4646
*/
47-
// NOTE: Only File for now. But we use a sealed interface to future proof this API; the upstream ktor API uses its
48-
// own sealed interface to split between the four types of incoming parts so it seemed useful that we might do the
49-
// same.
50-
sealed interface Extras {
47+
interface Extras {
5148
class File(val originalFileName: String?) : Extras
5249
}
5350

0 commit comments

Comments
 (0)