Skip to content

Commit 20515fa

Browse files
committed
Prettier format changes
Signed-off-by: Bryan Ramos <bramos@redhat.com>
1 parent 04f984a commit 20515fa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

utils/update-release-json.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
*/
1010

1111
const { readFile, writeFile } = require("node:fs/promises");
12-
const {
13-
parseArgs,
14-
required
15-
} = require('./shared');
12+
const { parseArgs, required } = require("./shared");
1613

1714
async function updateVersionFile(version) {
18-
const path = 'release.json';
15+
const path = "release.json";
1916

2017
const raw = await readFile(path, "utf8");
2118
let json;
@@ -30,17 +27,16 @@ async function updateVersionFile(version) {
3027

3128
await writeFile(path, JSON.stringify(json, null, 2) + "\n", "utf8");
3229

33-
console.log(`Updated ${path} version -> ${json.version}`)
30+
console.log(`Updated ${path} version -> ${json.version}`);
3431
}
3532

3633
async function main() {
3734
const args = parseArgs(process.argv.slice(2));
38-
const version = required('version', args.version);
35+
const version = required("version", args.version);
3936
updateVersionFile(version);
4037
}
4138

4239
main().catch((e) => {
4340
console.error(`Error: ${e.message}`);
4441
process.exit(1);
4542
});
46-

0 commit comments

Comments
 (0)