From 411b901ac010d823de57ab5ef9e29ec9e57d07a7 Mon Sep 17 00:00:00 2001 From: "sheche@microsoft.com" Date: Sat, 23 Mar 2019 19:12:48 +0800 Subject: [PATCH] Refine code --- src/statusbar/leetCodeStatusBarController.ts | 4 +--- src/utils/problemUtils.ts | 3 +++ src/webview/MarkdownEngine.ts | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/statusbar/leetCodeStatusBarController.ts b/src/statusbar/leetCodeStatusBarController.ts index 177853a1..d6058010 100644 --- a/src/statusbar/leetCodeStatusBarController.ts +++ b/src/statusbar/leetCodeStatusBarController.ts @@ -21,9 +21,7 @@ class LeetCodeStatusBarController implements Disposable { } public updateStatusBar(status: UserStatus, user?: string): void { - if (this.statusBar) { - this.statusBar.updateStatusBar(status, user); - } + this.statusBar.updateStatusBar(status, user); } public dispose(): void { diff --git a/src/utils/problemUtils.ts b/src/utils/problemUtils.ts index c7946bbc..f66642e5 100644 --- a/src/utils/problemUtils.ts +++ b/src/utils/problemUtils.ts @@ -1,3 +1,6 @@ +// Copyright (c) jdneo. All rights reserved. +// Licensed under the MIT license. + import kebabCase = require("lodash.kebabcase"); import { IProblem, langExt } from "../shared"; diff --git a/src/webview/MarkdownEngine.ts b/src/webview/MarkdownEngine.ts index bfff64d8..0d56382e 100644 --- a/src/webview/MarkdownEngine.ts +++ b/src/webview/MarkdownEngine.ts @@ -1,3 +1,6 @@ +// Copyright (c) jdneo. All rights reserved. +// Licensed under the MIT license. + import * as hljs from "highlight.js"; import * as MarkdownIt from "markdown-it"; import * as os from "os"; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy