Skip to content

Commit

Permalink
[#492] Fix rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
khangbui22 committed Mar 7, 2024
1 parent b17ce32 commit 01f07e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .template/addons/crud/lib/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def ignore_tt
# NOTE: change template extension so it would skip
# `when /#{TEMPLATE_EXTNAME}$/` condition and
# fallback to default `copy_file`
Thor::TEMPLATE_EXTNAME.concat "_no_match" # => .tt_no_match
Thor::TEMPLATE_EXTNAME.concat '_no_match' # => .tt_no_match
yield
ensure
# NOTE: make sure to undo our dirty work after the block
Thor::TEMPLATE_EXTNAME.chomp! "_no_match" # => .tt
Thor::TEMPLATE_EXTNAME.chomp! '_no_match' # => .tt
end

def directory_with_tt(...)
Expand Down

0 comments on commit 01f07e5

Please sign in to comment.