Improve `file_append' when file doesn't exist
This commit is contained in:
1 parent
b995ef2680
commit
3610427c74
2 files changed
+12
-1
No files matched your search
@@ -15,7 +15,10 @@ module Producer
|
||||
end
|
||||
|
||||
def combined_content
|
||||
fs.file_read(path) + content
|
||||
original_content = fs.file_read(path)
|
||||
|
||||
return content unless original_content
|
||||
original_content + content
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user