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 crash in truncation #41

Merged
merged 1 commit into from Jul 31, 2019

Conversation

chansen22
Copy link
Contributor

@chansen22 chansen22 commented Jul 30, 2019

Band-aid for now
Fixes #40

@@ -54,6 +54,8 @@ extension NantesLabel {
continue
}

guard 0..<lines.count ~= originalIndex else { continue }
Copy link
Contributor

Choose a reason for hiding this comment

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

never seen this operator before, very swifty

@ngoleo ngoleo merged commit c21b72f into instacart:master Jul 31, 2019
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.

crash on Truncation.swift:57 let originalLine = lines[originalIndex]
2 participants