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

Remove duplicate conditions in switch statement to fix build errors. #811

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Wataru343
Copy link

Hello,

I've made a small change to fix build errors caused by duplicate conditions in a switch statement.
The errors were as follows:

SwiftDate/Sources/SwiftDate/Supports/Calendars.swift:86:8: error: Duplicate Conditions Violation: Duplicate sets of conditions in the same branch instruction should be avoided (duplicate_conditions)
SwiftDate/Sources/SwiftDate/Supports/Calendars.swift:87:8: error: Duplicate Conditions Violation: Duplicate sets of conditions in the same branch instruction should be avoided (duplicate_conditions)

To resolve these errors, I removed the duplicate case statements in the switch block.

Build environment
Xcode: 14.3
macOS: 13.3

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.

1 participant