Skip to content

Commit

Permalink
Fix set_version script (elastic#8071)
Browse files Browse the repository at this point in the history
There was an error in elastic#8058, where no new line was added at the
end of the generated file, causing `go vet` to fail.
  • Loading branch information
tsg authored and ruflin committed Aug 24, 2018
1 parent 22e575f commit 9f3a8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/set_version
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def replace_in_file(filename, varname, version):
with open(filename, 'r') as f:
for line in f:
if line.startswith("const " + varname):
new_lines.append('const {} = "{}"'.format(varname, version))
new_lines.append('const {} = "{}"\n'.format(varname, version))
else:
new_lines.append(line)

Expand Down

0 comments on commit 9f3a8d2

Please sign in to comment.