Skip to content

Commit 5b86043

Browse files
committed
Rename const
1 parent a6025fd commit 5b86043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function spawnServer(opts, killOnExit = true) {
6767
const tmpdir = os.tmpdir();
6868
const filepath = path.join(tmpdir, `prettier-ruby-parser-${process.pid}.txt`);
6969

70-
const currentDir = opts.filepath || process.cwd();
70+
const currentFile = opts.filepath || process.cwd();
7171

7272
const server = spawn(
7373
opts.rubyExecutablePath || "ruby",
@@ -77,7 +77,7 @@ export async function spawnServer(opts, killOnExit = true) {
7777
filepath
7878
],
7979
{
80-
cwd: path.dirname(currentDir),
80+
cwd: path.dirname(currentFile),
8181
env: Object.assign({}, process.env, { LANG: getLang() }),
8282
stdio: ["ignore", "ignore", "inherit"],
8383
detached: true

0 commit comments

Comments
 (0)