tools: Fix header generation for new files

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-05-13 20:16:19 +02:00 committed by Xaymar
parent acef006198
commit ace861c578
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ async function updateFile(file) {
let fd = await FSPROMISES.open(file, "w");
let fp = [];
if ((startHeader >= 0) && (endHeader >= 0)) {
if ((startHeader >= 0) && (endHeader > startHeader)) {
let pos = 0;
if (startHeader > 0) {
fd.write(content, 0, startHeader, 0);