config: end the file with a newline

Small cosmetic change, POSIX requires final newlines in text files.

https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline
This commit is contained in:
Jordi Gutiérrez Hermoso 2024-07-22 09:43:29 -04:00 committed by jordigh
parent f9e7558410
commit f0aacc4d96

View File

@ -98,7 +98,7 @@ export class FileConfig<FileContents> {
}
public async persistToDisk() {
await Deps.writeFile(this._filePath, JSON.stringify(this._rawConfig, null, 2));
await Deps.writeFile(this._filePath, JSON.stringify(this._rawConfig, null, 2) + "\n");
}
}