Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a swiftlint violation #726

Merged
merged 1 commit into from
Mar 30, 2020
Merged

Fix a swiftlint violation #726

merged 1 commit into from
Mar 30, 2020

Conversation

chunkyguy
Copy link
Contributor

Nimble/Sources/Nimble/Matchers/PostNotification.swift:74:1: warning: Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

> Nimble/Sources/Nimble/Matchers/PostNotification.swift:74:1: warning: Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)
@cruisediary
Copy link

LGTM

Comment on lines 71 to +73
fromNotificationCenter center: NotificationCenter = .default)
-> Predicate<Any>
where T: Matcher, T.ValueType == [Notification]
{
where T: Matcher, T.ValueType == [Notification] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the following:

public func postNotifications<T>(
    _ notificationsMatcher: T,
    fromNotificationCenter center: NotificationCenter = .default
) -> Predicate<Any> where T: Matcher, T.ValueType == [Notification] {

What do you think?

Copy link
Member

@ikesyo ikesyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this as is for now. Thanks for the pull request!

@ikesyo ikesyo merged commit 32ed556 into Quick:master Mar 30, 2020
@chunkyguy chunkyguy deleted the patch-1 branch July 17, 2020 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants