-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an incorrect autocorrect for
Performance/RedundantStringChars
Follow up to rubocop/rubocop-performance#249 (comment). This PR fixes an incorrect autocorrect for `Performance/RedundantStringChars` when using `str.chars[0]`.
- Loading branch information
1 parent
cd705a0
commit aeba999
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog/fix_incorrect_autocorrect_for_performance_redundant_string_chars.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#273](https://github.com/rubocop/rubocop-performance/pull/273): Fix an incorrect autocorrect for `Performance/RedundantStringChars` when using `str.chars[0]`. ([@koic][]) |
This file contains 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
This file contains 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