Skip to content

Commit

Permalink
Fix mismatched indentations warning message (#1150)
Browse files Browse the repository at this point in the history
If you run ruby with warnings enabled there is a warning message from `acts-as-taggable-on.rb` because the `begin` and `rescue` on line 10 aren't aligned:

    lib/acts-as-taggable-on.rb:13: warning: mismatched indentations at 'rescue' with 'begin' at 10

I've aligned them, which fixes the warning message.
  • Loading branch information
iainbeeston authored Feb 5, 2025
1 parent cccaf98 commit 25266d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ As such, _Breaking Changes_ are major. _Features_ would map to either major or m
* Features
* [@tagliala Add back Ruby 3.1 compatibility](https://github.com/mbleigh/acts-as-taggable-on/pull/1082)
* Reduce packaged gem size
* Fixes
* [@iainbeeston Fix mismatched indentations warning message](https://github.com/mbleigh/acts-as-taggable-on/pull/1150)

### [v12.0.0) / 2024-11-09](https://github.com/mbleigh/acts-as-taggable-on/compare/v11.0.0...v12.0.0)

Expand Down
2 changes: 1 addition & 1 deletion lib/acts-as-taggable-on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
begin
require 'rails/engine'
require 'acts-as-taggable-on/engine'
rescue LoadError
rescue LoadError
end

require 'digest/sha1'
Expand Down

0 comments on commit 25266d6

Please sign in to comment.