Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 32d77c8

Browse files
lars-reimannactions-user
authored andcommitted
style: apply automatic fixes of linters
1 parent 65f4844 commit 32d77c8

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

Diff for: build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ idea {
2222
}
2323
}
2424

25-
2625
// Subprojects ---------------------------------------------------------------------------------------------------------
2726

2827
subprojects {

Diff for: server/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ tasks.withType<KotlinCompile> {
2626
kotlinOptions.jvmTarget = javaVersion
2727
}
2828

29-
3029
// Dependencies --------------------------------------------------------------------------------------------------------
3130

3231
val ktorVersion = "1.6.7"

Diff for: server/src/main/kotlin/com/larsreimann/api_editor/transformation/EnumAnnotationProcessor.kt

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.larsreimann.api_editor.transformation
22

33
import com.larsreimann.api_editor.model.EnumAnnotation
4-
import com.larsreimann.api_editor.model.PythonParameterAssignment
54
import com.larsreimann.api_editor.mutable_model.PythonArgument
65
import com.larsreimann.api_editor.mutable_model.PythonAttribute
76
import com.larsreimann.api_editor.mutable_model.PythonEnum

Diff for: server/src/main/kotlin/com/larsreimann/api_editor/transformation/Preprocessor.kt

+8-8
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ private fun PythonFunction.addOriginalDeclarations() {
7474
arguments = this.parameters
7575
.filter { !it.isImplicit() }
7676
.map {
77-
PythonArgument(
78-
name = when (it.assignedBy) {
79-
PythonParameterAssignment.NAME_ONLY -> it.name
80-
else -> null
81-
},
82-
value = PythonReference(it)
83-
)
84-
}
77+
PythonArgument(
78+
name = when (it.assignedBy) {
79+
PythonParameterAssignment.NAME_ONLY -> it.name
80+
else -> null
81+
},
82+
value = PythonReference(it)
83+
)
84+
}
8585
)
8686
}
8787

Diff for: server/src/test/kotlin/com/larsreimann/api_editor/transformation/EnumAnnotationProcessorTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.larsreimann.api_editor.transformation
22

33
import com.larsreimann.api_editor.model.EnumAnnotation
44
import com.larsreimann.api_editor.model.EnumPair
5-
import com.larsreimann.api_editor.model.PythonParameterAssignment
65
import com.larsreimann.api_editor.mutable_model.PythonArgument
76
import com.larsreimann.api_editor.mutable_model.PythonCall
87
import com.larsreimann.api_editor.mutable_model.PythonDeclaration

0 commit comments

Comments
 (0)