lib/hx/backend/rawfiles.rb in hx-0.7.0 vs lib/hx/backend/rawfiles.rb in hx-0.7.1
- old
+ new
@@ -44,10 +44,10 @@
private :pathname_to_path
def edit_entry(path, prototype=nil)
pathname = path_to_pathname(path)
begin
- body = pathname.read
+ text = pathname.read
rescue Errno::ENOENT
raise NoSuchEntryError, path unless prototype
text = prototype['content'].to_s
end
text = yield text