mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Kill dead code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
941f15b9f9
commit
17e0451e66
@ -6,7 +6,7 @@
|
|||||||
import type { UpdateInfo } from "electron-updater";
|
import type { UpdateInfo } from "electron-updater";
|
||||||
import { autoUpdater } from "electron-updater";
|
import { autoUpdater } from "electron-updater";
|
||||||
import logger from "./logger";
|
import logger from "./logger";
|
||||||
import { isPublishConfigured, isTestEnv } from "../common/vars";
|
import { isTestEnv } from "../common/vars";
|
||||||
import { delay } from "../common/utils";
|
import { delay } from "../common/utils";
|
||||||
import type { UpdateAvailableToBackchannel } from "../common/ipc";
|
import type { UpdateAvailableToBackchannel } from "../common/ipc";
|
||||||
import { areArgsUpdateAvailableToBackchannel, AutoUpdateChecking, AutoUpdateLogPrefix, AutoUpdateNoUpdateAvailable, broadcastMessage, onceCorrect, UpdateAvailableChannel } from "../common/ipc";
|
import { areArgsUpdateAvailableToBackchannel, AutoUpdateChecking, AutoUpdateLogPrefix, AutoUpdateNoUpdateAvailable, broadcastMessage, onceCorrect, UpdateAvailableChannel } from "../common/ipc";
|
||||||
@ -17,10 +17,6 @@ import { UserStore } from "../common/user-store";
|
|||||||
|
|
||||||
let installVersion: undefined | string;
|
let installVersion: undefined | string;
|
||||||
|
|
||||||
export function isAutoUpdateEnabled() {
|
|
||||||
return autoUpdater.isUpdaterActive() && isPublishConfigured;
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleAutoUpdateBackChannel(event: Electron.IpcMainEvent, ...[arg]: UpdateAvailableToBackchannel) {
|
function handleAutoUpdateBackChannel(event: Electron.IpcMainEvent, ...[arg]: UpdateAvailableToBackchannel) {
|
||||||
if (arg.doUpdate) {
|
if (arg.doUpdate) {
|
||||||
if (arg.now) {
|
if (arg.now) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user