Skip to content

Commit

Permalink
Align variable assignment, make return variable clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Sep 28, 2011
1 parent ec71eea commit 1415088
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/guard/listener.rb
Expand Up @@ -47,14 +47,14 @@ def self.select_and_init(*args)
# @option options [Array<String>] ignore_paths the paths to ignore by the listener
#
def initialize(directory = Dir.pwd, options = {})
@directory = directory.to_s
@sha1_checksums_hash = {}
@file_timestamp_hash = {}
@relativize_paths = options.fetch(:relativize_paths, true)
@changed_files = []
@locked = false
@ignore_paths = DEFAULT_IGNORE_PATHS
@ignore_paths |= options[:ignore_paths] if options[:ignore_paths]
@directory = directory.to_s
@sha1_checksums_hash = {}
@file_timestamp_hash = {}
@relativize_paths = options.fetch(:relativize_paths, true)
@changed_files = []
@locked = false
@ignore_paths = DEFAULT_IGNORE_PATHS
@ignore_paths |= options[:ignore_paths] if options[:ignore_paths]
@watch_all_modifications = options.fetch(:watch_all_modifications, false)

update_last_event
Expand Down Expand Up @@ -150,6 +150,7 @@ def modified_files(dirs, options = {})
end
update_last_event
files.concat(potentially_modified_files(dirs, options).select { |path| file_modified?(path, last_event) })

relativize_paths(files)
end

Expand Down

0 comments on commit 1415088

Please sign in to comment.