Commit ebd8fabb authored by nmilojevic1's avatar nmilojevic1

Revert LegacyWriter open&initialize in constructor

parent 6b0f9805
......@@ -14,6 +14,7 @@ module Gitlab
@keys = Set.new
mkdir_p(File.dirname(@path))
file.write('{}')
end
def close
......@@ -64,11 +65,7 @@ module Gitlab
private
def file
@file ||= begin
file = File.open(@path, "wb")
file.write('{}')
file
end
@file ||= File.open(@path, "wb")
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment