fix rubocop error

This commit is contained in:
t-mangoe 2022-03-26 16:32:54 +09:00
parent 67459d0ef9
commit 462fa61bc5

View file

@ -42,7 +42,6 @@ module ColorLS
init_long_format(mode,long_style_options) init_long_format(mode,long_style_options)
@tree = {mode: mode == :tree, depth: tree_depth} @tree = {mode: mode == :tree, depth: tree_depth}
@horizontal = mode == :horizontal @horizontal = mode == :horizontal
@show_git = show_git
@git_status = init_git_status(show_git) @git_status = init_git_status(show_git)
@time_style = long_style_options.key?(:time_style) ? long_style_options[:time_style] : '' @time_style = long_style_options.key?(:time_style) ? long_style_options[:time_style] : ''
@indicator_style = indicator_style @indicator_style = indicator_style
@ -141,6 +140,7 @@ module ColorLS
end end
def init_git_status(show_git) def init_git_status(show_git)
@show_git = show_git
return {}.freeze unless show_git return {}.freeze unless show_git
# stores git status information per directory # stores git status information per directory