-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's valid to call .sort on a hash and it'll sort by key. This means you don't need to perform an additional lookup when iterating and makes the code more readable.
- Loading branch information
1 parent
35c790e
commit 0b70544
Showing
4 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# mod_ext_filter definitions | ||
<%- if @ext_filter_define.length >= 1 -%> | ||
<%- @ext_filter_define.keys.sort.each do |name| -%> | ||
ExtFilterDefine <%= name %> <%= @ext_filter_define[name] %> | ||
<%- end -%> | ||
<%- @ext_filter_define.sort.each do |name, value| -%> | ||
ExtFilterDefine <%= name %> <%= value %> | ||
<%- end -%> |
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
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