lib/aptly_snapshot.rb in aptly_cli-0.2.6 vs lib/aptly_snapshot.rb in aptly_cli-0.2.7
- old
+ new
@@ -95,10 +95,10 @@
end
def snapshot_update(name, new_name, description=nil)
uri = "/snapshots/#{name}"
- unless new_name.nil?
+ if new_name.nil?
snap_name = name
else
snap_name = new_name
end