Skip to content

Conversation

undefined-moe
Copy link
Member

No description provided.

const file = path.join(__dirname, filename);
const content = getGlobStyle(glob);
if (!fs.existsSync(file) || fs.readFileSync(file, 'utf-8') !== content) {
fs.writeFileSync(file, content);

Check failure

Code scanning / CodeQL

Potential file system race condition

The file may have changed since it [was checked](1).
const file = path.join(__dirname, filename);
const content = getGlobPage(glob);
if (!fs.existsSync(file) || fs.readFileSync(file, 'utf-8') !== content) {
fs.writeFileSync(file, content);

Check failure

Code scanning / CodeQL

Potential file system race condition

The file may have changed since it [was checked](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant