Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit d717d3f

Browse files
committed
remove unnecessary type assertion, remove datapath suffix
1 parent 26af55e commit d717d3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packages/cli/src/detach.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const FILE_ENCODING = "utf8";
2323
const READY_MESSAGE = "ready";
2424
const START_ERROR =
2525
"An error occurred spawning a detached instance of Ganache:";
26-
const dataPath = envPaths(`Ganache/instances`).data;
26+
const dataPath = envPaths(`Ganache/instances`, { suffix: "" }).data;
2727

2828
function getInstanceFilePath(instanceName: string): string {
2929
return path.join(dataPath, `${instanceName}.json`);

src/packages/cli/tests/detach.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("@ganache/cli", () => {
2525
durations.forEach(duration => {
2626
const [ms, formatted] = duration;
2727
it(`should format an input of ${ms} as "${formatted}"`, () => {
28-
const result = formatUptime(ms as number);
28+
const result = formatUptime(ms);
2929
assert.strictEqual(result, formatted);
3030
});
3131
});

0 commit comments

Comments
 (0)