Skip to content

Commit

Permalink
refactor: remove useless replace .ts to .js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Oct 4, 2024
1 parent bf75826 commit dad73b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/_code-sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export async function initCodeSandbox(indexJsPath, ...filesPathes) {
const response = await fetch(indexJsPath);
const txtData = await response.text();
let indexJsContent = txtData.split('//##REMOVE##')[0];

Check failure on line 11 in examples/_code-sandbox.js

View workflow job for this annotation

GitHub Actions / main

'indexJsContent' is never reassigned. Use 'const' instead

indexJsContent = indexJsContent.replaceAll(/(olcs\/.*?).ts('?;?)/ig, '$1.js$2');

const additionalJsFiles = {};
const resourcesFiles = filesPathes
.filter(path => path.indexOf('data/') === 0)
Expand Down

0 comments on commit dad73b5

Please sign in to comment.