Skip to content

Commit

Permalink
Placate linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JensAyton committed Apr 17, 2020
1 parent 6e76258 commit e06fa28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MobiusExtras/Source/BeginnerLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@

import MobiusCore

extension Mobius {
public extension Mobius {

/// A simplified version of `Mobius.loop` for use in tutorials.
///
/// This helper simplifies setting up a loop with no effects.
///
/// - Parameter update: A function taking a model and event and returning a new model.
@inlinable
public static func beginnerLoop<Model, Event>(
static func beginnerLoop<Model, Event>(
update: @escaping (Model, Event) -> Model
) -> Builder<Model, Event, Never> {
let realUpdate = Update<Model, Event, Never> { model, event in
return .next(update(model, event))
}

let effectHandler = AnyConnectable<Never, Event> { consumer in
let effectHandler = AnyConnectable<Never, Event> { _ in
return Connection(
acceptClosure: { _ in },
disposeClosure: {}
Expand Down
3 changes: 3 additions & 0 deletions MobiusExtras/Test/WikiTutorialTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
// under the License.

import MobiusCore
import MobiusExtras
import XCTest

/// Test cases that reproduce the Getting Started section of the GitHub wiki
class WikiTutorialTest: XCTestCase {
// swiftlint:disable function_body_length

func testWikiCreatingALoop() {
// Dummy implementation of print()
var printedValues: [String] = []
Expand Down

0 comments on commit e06fa28

Please sign in to comment.