This repository was archived by the owner on Sep 8, 2018. It is now read-only.
Repository navigation
Replace atom-space-pen-views with atom-select-list - #119
Merged
Merged
Conversation
30 tasks done
| for (let diff of diffs) { | ||
| const bufferRow = diff.newStart > 0 ? diff.newStart - 1 : diff.newStart | ||
| const lineText = this.editor.lineTextForBufferRow(bufferRow) | ||
| if (lineText) { |
There was a problem hiding this comment.
Why do you use an if statement here but a ternary operator for bufferRow?
Contributor
Author
There was a problem hiding this comment.
Generally I don't have a strong preference over one or the other, so I guess I did it inadvertently. But being consistent might actually be nicer and shorter here, so good call! I'll update this shortly and use a ternary operator instead. 👍
|
@as-cii Tested git-diff keybinding-resolver package-generator styleguide as I just saw the PR's for all of these changes to remove jquery. I didn't see any issues on any of these. You're free to merge these when ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request uses atom-select-list as a drop-in replacement for atom-space-pen-views. Feature-wise nothing should change, but this yet another step toward removing jQuery from Atom Core.
/cc: @ungb for 👀 on this