Fix Lint errors in StringUtility.ts (#479)
This commit is contained in:
parent
d0f6923d24
commit
b85a20cbea
|
@ -248,8 +248,6 @@ src/Shared/ExplorerSettings.ts
|
|||
src/Shared/PriceEstimateCalculator.ts
|
||||
src/Shared/StorageUtility.test.ts
|
||||
src/Shared/StorageUtility.ts
|
||||
src/Shared/StringUtility.test.ts
|
||||
src/Shared/StringUtility.ts
|
||||
src/Shared/appInsights.ts
|
||||
src/SparkClusterManager/ArcadiaResourceManager.ts
|
||||
src/SparkClusterManager/SparkClusterManager.ts
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ConsoleDataType } from "../Menus/NotificationConsole/NotificationConsol
|
|||
import { ContextualPaneBase } from "./ContextualPaneBase";
|
||||
import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility";
|
||||
import * as NotificationConsoleUtils from "../../Utils/NotificationConsoleUtils";
|
||||
import { StringUtility } from "../../Shared/StringUtility";
|
||||
import * as StringUtility from "../../Shared/StringUtility";
|
||||
import { configContext } from "../../ConfigContext";
|
||||
|
||||
export class SettingsPane extends ContextualPaneBase {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { StringUtility } from "./StringUtility";
|
||||
import * as StringUtility from "./StringUtility";
|
||||
|
||||
export class LocalStorageUtility {
|
||||
public static hasItem(key: StorageKey): boolean {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { StringUtility } from "./StringUtility";
|
||||
import * as StringUtility from "./StringUtility";
|
||||
|
||||
describe("String utility", () => {
|
||||
it("Convert to integer from string", () => {
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
export class StringUtility {
|
||||
public static toNumber(num: string | null): number {
|
||||
export function toNumber(num: string | null): number {
|
||||
return Number(num);
|
||||
}
|
||||
|
||||
public static toBoolean(valueStr: string | null): boolean {
|
||||
return valueStr === "true";
|
||||
}
|
||||
}
|
||||
|
||||
export function toBoolean(valueStr: string | null): boolean {
|
||||
return valueStr === "true";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue