Skip to content

Commit

Permalink
Remove unnecessary fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeWilliams committed Jan 27, 2023
1 parent 55b647a commit 57ee5a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/view_component/inline_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def inline_template
end

def inline_template_language
return @__vc_inline_template_language if defined?(@__vc_inline_template_language)
"erb"
@__vc_inline_template_language if defined?(@__vc_inline_template_language)
end

def inherited(subclass)
Expand Down

0 comments on commit 57ee5a4

Please sign in to comment.