Permalink
Browse files

Use do/end block, so code in related methods looks similar

So that the methods #created, #deleted, and #modified in Directory look
similar to each other.
  • Loading branch information...
1 parent 9040b6e commit 98a37c95f9a5f1bc9b55b35a3b321b9070af7259 @tkareine tkareine committed Aug 29, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/fssm/state/directory.rb
@@ -27,10 +27,9 @@ def created(previous, current)
end
def deleted(previous, current)
- (previous.keys - current.keys).
- sort.
- reverse.
- each {|file| @path.delete(file, previous[file][1])}
+ (previous.keys - current.keys).sort.reverse.each do |file|
+ @path.delete(file, previous[file][1])
+ end
end
def modified(previous, current)

0 comments on commit 98a37c9

Please sign in to comment.