Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Nov 17, 2023
1 parent 36ae249 commit 806bfbb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/xsnap/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ const readBuildJSON = async (envRecordFile, { fs }) => {
};

const writeBuildJSON = async (envRecordFile, build, { fs }) => {
const data = JSON.stringify(build, undefined, 2) + '\n';
await fs.writeFile(envRecordFile, data);
const data = JSON.stringify(build, undefined, 2);
await fs.writeFile(envRecordFile, `${data}\n`);
};

/**
Expand All @@ -223,9 +223,10 @@ const writeBuildJSON = async (envRecordFile, build, { fs }) => {
* stdout: typeof process.stdout,
* spawn: typeof import('child_process').spawn,
* fs: {
* readFile: typeof import('fs').promises.readFile,
* writeFile: typeof import('fs').promises.writeFile,
* existsSync: typeof import('fs').existsSync,
* rmdirSync: typeof import('fs').rmdirSync,
* readFile: typeof import('fs').promises.readFile,
* },
* os: {
* type: typeof import('os').type,
Expand Down Expand Up @@ -275,7 +276,7 @@ async function main(args, { env, spawn, fs, os }) {
didGit = true;
await submodule.update(); // requires git
} else {
console.log(`${key} case C: have submodule/ but not .git : do nothing`);
console.log(`${key} case C: have submodule/, not .git : do nothing`);
}
} else {
console.log(`${key} case A: no submodule/ directory : do init`);
Expand Down

0 comments on commit 806bfbb

Please sign in to comment.