Skip to content

Commit

Permalink
fix: remove unneeded async
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcadoo committed Nov 3, 2021
1 parent fcb288e commit 60c8842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/sanitize_dashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const sanitizeDashboard = (fileContent) => {
.replace(/[\}\)\]]\,(?!\s*?[\{\[\"\'\w])/g, '}'); // Remove trailing commas if any left after json blocks
};

pathsToSanitize.forEach(async (i) => {
pathsToSanitize.forEach((i) => {
const directory = path.resolve('..', 'quickstarts', `${i}`, 'dashboards');
const files = fs.readdirSync(directory, { withFileTypes: true });
const jsonFiles = files.filter((file) => file.name.includes('.json'));
Expand Down

0 comments on commit 60c8842

Please sign in to comment.