Skip to content

Commit

Permalink
fix: Update add-author.js to concat empty string instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
harish-sethuraman committed Sep 4, 2022
1 parent 675ed6c commit bd0e943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/add-author.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function fetchUserProfile(username) {
try {
await fs.stat(bioFilePath);
} catch {
await fs.writeFile(bioFilePath, profile.bio, "utf8");
await fs.writeFile(bioFilePath, profile.bio ?? "", "utf8");
}

console.log(`Please update ${bioFilePath} to include your information.`);
Expand Down

0 comments on commit bd0e943

Please sign in to comment.