lib/origen/application/version_tracker.rb in origen-0.60.7 vs lib/origen/application/version_tracker.rb in origen-0.60.8
- old
+ new
@@ -19,16 +19,15 @@
end
# Returns the persisted storage container (a Hash)
def storage
return @storage if @storage
+
if File.exist?(STORAGE_FILE)
File.open(STORAGE_FILE) do |f|
- begin
- @storage = Marshal.load(f)
- rescue
- @storage = {}
- end
+ @storage = Marshal.load(f)
+ rescue
+ @storage = {}
end
else
@storage = {}
end
end