Skip to content

Commit b47c3b6

Browse files
refactor: Satisfy linter
1 parent 7e89497 commit b47c3b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/GraphQL/Subscription/EventStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ open class EventStream<Element> {
2727
-> ConcurrentEventStream<To>
2828
{
2929
let newStream = stream.mapStream(closure)
30-
return ConcurrentEventStream<To>.init(newStream)
30+
return ConcurrentEventStream<To>(newStream)
3131
}
3232
}
3333

Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import GraphQL
3535
)
3636
subscribers.append(subscriber)
3737
}
38-
return ConcurrentEventStream<T>.init(asyncStream)
38+
return ConcurrentEventStream<T>(asyncStream)
3939
}
4040
}
4141

0 commit comments

Comments
 (0)