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

Fix code style

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-01-11 14:03:51 +02:00
parent 8d87bd0985
commit 995983f0b0
No known key found for this signature in database
GPG Key ID: 5F465B5672372402
5 changed files with 11 additions and 14 deletions

View File

@ -18,8 +18,7 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { lifecycleEnum } from "@ogre-tools/injectable";
import { ExtensionDiscovery } from "./extension-discovery"; import { ExtensionDiscovery } from "./extension-discovery";
import extensionLoaderInjectable from "../extension-loader/extension-loader.injectable"; import extensionLoaderInjectable from "../extension-loader/extension-loader.injectable";
import isCompatibleExtensionInjectable from "./is-compatible-extension/is-compatible-extension.injectable"; import isCompatibleExtensionInjectable from "./is-compatible-extension/is-compatible-extension.injectable";

View File

@ -18,13 +18,8 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { lifecycleEnum } from "@ogre-tools/injectable"; import { AppPaths, appPathsInjectionToken, appPathsIpcChannel } from "../../../common/app-paths/app-path-injection-token";
import {
AppPaths,
appPathsInjectionToken,
appPathsIpcChannel,
} from "../../../common/app-paths/app-path-injection-token";
import getValueFromRegisteredChannelInjectable from "./get-value-from-registered-channel/get-value-from-registered-channel.injectable"; import getValueFromRegisteredChannelInjectable from "./get-value-from-registered-channel/get-value-from-registered-channel.injectable";
let syncAppPaths: AppPaths; let syncAppPaths: AppPaths;

View File

@ -18,8 +18,7 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { lifecycleEnum } from "@ogre-tools/injectable";
import { ipcRenderer } from "electron"; import { ipcRenderer } from "electron";
const ipcRendererInjectable = getInjectable({ const ipcRendererInjectable = getInjectable({

View File

@ -20,8 +20,7 @@
*/ */
import type { LogTabData, LogTabStore } from "../../log-tab-store/log-tab.store"; import type { LogTabData, LogTabStore } from "../../log-tab-store/log-tab.store";
import type { LogStore } from "../../log-store/log.store"; import type { LogStore } from "../../log-store/log.store";
import { computed } from "mobx"; import { computed, makeObservable } from "mobx";
import { makeObservable } from "mobx";
interface Dependencies { interface Dependencies {
dockStore: { selectedTabId: string }, dockStore: { selectedTabId: string },

View File

@ -56,7 +56,12 @@ export const createStorage = ({ directoryForLensLocalStorage, readJsonFile, writ
try { try {
storage.data = await readJsonFile(filePath); storage.data = await readJsonFile(filePath);
} catch {} finally { }
// eslint-disable-next-line no-empty
catch {}
finally {
if (!isTestEnv) { if (!isTestEnv) {
logger.info(`${logPrefix} loading finished for ${filePath}`); logger.info(`${logPrefix} loading finished for ${filePath}`);
} }