1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

remove hack

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-06-24 15:00:02 -04:00
parent 0e1911cc9d
commit b9cb18c7ce

View File

@ -22,14 +22,8 @@
import fse from "fs-extra";
import { app, remote } from "electron";
import path from "path";
import { isTestEnv } from "../../common/vars";
export function fileNameMigration() {
if (isTestEnv) {
// hack: to make unit testing easier just ignore the following code
return;
}
const userDataPath = (app || remote.app).getPath("userData");
const configJsonPath = path.join(userDataPath, "config.json");
const lensUserStoreJsonPath = path.join(userDataPath, "lens-user-store.json");