summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Nguyen <j@jamielinux.com>2016-05-11 08:30:04 +0100
committerJamie Nguyen <j@jamielinux.com>2016-05-11 08:30:04 +0100
commitacc0d316c9dd628e3e2d6be438de83b6d7cf6638 (patch)
treeafc795a0e8438f02194c2e88da914ff79c7e7b0a
parent1df51bd2c3a3ee53834c89a074e56c361b051460 (diff)
Avoid chaining over a newline
-rw-r--r--lib/byteback/backup_directory.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/byteback/backup_directory.rb b/lib/byteback/backup_directory.rb
index 14a55cf..89b0ae9 100644
--- a/lib/byteback/backup_directory.rb
+++ b/lib/byteback/backup_directory.rb
@@ -150,8 +150,7 @@ module Byteback
next if entry[0] == '.'
name = File.expand_path(ENV['HOME'] + '/' + entry)
File.directory?(name + '/current') ? BackupDirectory.new(name) : nil
- end
- .compact
+ end.compact
end
# Returns every snapshot in every backup directory
@@ -190,8 +189,7 @@ module Byteback
# directory name must represent a parseable Time
nil
end
- end
- .compact
+ end.compact
end
# Create a new snapshot of 'current'