Skip to content

Commit

Permalink
Fixed unnecessary mutable variable in TestScheduler
Browse files Browse the repository at this point in the history
Contributed by @yuzushioh
  • Loading branch information
yuzushioh authored Mar 31, 2020
1 parent 2c94e36 commit b839c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/EntwineTest/TestScheduler/TestScheduler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class TestScheduler {
/// - Returns: A `TestableSubscriber` that contains, or is scheduled to contain, the output of the publisher subscription.
public func start<P: Publisher>(configuration: Configuration = .default, create: @escaping () -> P) -> TestableSubscriber<P.Output, P.Failure> {

var subscriber = createTestableSubscriber(P.Output.self, P.Failure.self, options: configuration.subscriberOptions)
let subscriber = createTestableSubscriber(P.Output.self, P.Failure.self, options: configuration.subscriberOptions)
var source: AnyPublisher<P.Output, P.Failure>!

schedule(after: configuration.created, tolerance: minimumTolerance, options: nil) {
Expand Down

0 comments on commit b839c9f

Please sign in to comment.