summaryrefslogtreecommitdiff
path: root/lib/byteback/backup_directory.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2016-11-09 09:41:50 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2016-11-09 09:41:50 +0000
commit3cc8a83938cd4eae9a196375dca2fd9127f23aa0 (patch)
treefa36b507469bdb1c7b4891e336a6928c59bceab5 /lib/byteback/backup_directory.rb
parent25f3947c16b57a9686500534e44423aab90b0bc7 (diff)
parentc68fe975ab4b47436bd90fa701b83a78793b0f32 (diff)
Merge branch 'master' into 12-fix-btrfs-path
Diffstat (limited to 'lib/byteback/backup_directory.rb')
-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 53491ff..a39cf84 100644
--- a/lib/byteback/backup_directory.rb
+++ b/lib/byteback/backup_directory.rb
@@ -155,8 +155,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
@@ -195,8 +194,7 @@ module Byteback
# directory name must represent a parseable Time
nil
end
- end
- .compact
+ end.compact
end
# Create a new snapshot of 'current'