Commit ebd8fabb authored by nmilojevic1's avatar nmilojevic1

Revert LegacyWriter open&initialize in constructor

parent 6b0f9805
...@@ -14,6 +14,7 @@ module Gitlab ...@@ -14,6 +14,7 @@ module Gitlab
@keys = Set.new @keys = Set.new
mkdir_p(File.dirname(@path)) mkdir_p(File.dirname(@path))
file.write('{}')
end end
def close def close
...@@ -64,11 +65,7 @@ module Gitlab ...@@ -64,11 +65,7 @@ module Gitlab
private private
def file def file
@file ||= begin @file ||= File.open(@path, "wb")
file = File.open(@path, "wb")
file.write('{}')
file
end
end end
end 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