Skip to content

Commit 6a93b96

Browse files
committed
fix(codegen): remove unnecessary filter call
1 parent a159b0b commit 6a93b96

File tree

1 file changed

+1
-2
lines changed
  • graphql-kotlin-toolkit-codegen/src/main/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper

1 file changed

+1
-2
lines changed

graphql-kotlin-toolkit-codegen/src/main/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper/ImplementerMapper.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ internal class ImplementerMapper(
1818
fun getImplementers(input: GraphQLInterfaceType): Collection<GraphQLObjectType> {
1919
return schema.allTypesAsList
2020
.filterIsInstance<GraphQLObjectType>()
21-
.filter { it != input }
22-
.filter { schema.isPossibleType(input, it) }
21+
.filter { it != input && schema.isPossibleType(input, it) }
2322
}
2423
}

0 commit comments

Comments
 (0)