Skip to content

Commit 4e7620b

Browse files
committed
Unused default value that creates an Array object per each invocation
1 parent 9a8d2de commit 4e7620b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/http/mime_negotiation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def accepts
7272
# GET /posts/5.xhtml | request.format => Mime[:html]
7373
# GET /posts/5 | request.format => Mime[:html] or Mime[:js], or request.accepts.first
7474
#
75-
def format(view_path = [])
75+
def format(_view_path = nil)
7676
formats.first || Mime::NullType.instance
7777
end
7878

0 commit comments

Comments
 (0)