Skip to content

Commit

Permalink
Update src/core/file/fileManipulator.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
thecurz and coderabbitai[bot] authored Sep 21, 2024
1 parent e6906f7 commit b3bcfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/file/fileManipulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PythonManipulator extends BaseManipulator {

const sz = lines.length;
for (let i = 0; i < sz; i++) {
const line = lines[i] + (i != sz - 1 ? "\n" : "");
const line = lines[i] + (i !== sz - 1 ? "\n" : "");
buffer += line;
if (quoteType === "") {
const indexSingle = line.search(/(?<![\"])(?<!\\)'''(?![\"])/g);
Expand Down

0 comments on commit b3bcfbd

Please sign in to comment.