From 827dcc890162e97c55e335a4c3ff3fffbd57b1d2 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 9 Apr 2020 00:21:42 +0300 Subject: style(demo): formatting, lint issue --- demo/src/utils/editor-history.util.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'demo/src/utils/editor-history.util.ts') diff --git a/demo/src/utils/editor-history.util.ts b/demo/src/utils/editor-history.util.ts index 65ca38a..023a698 100644 --- a/demo/src/utils/editor-history.util.ts +++ b/demo/src/utils/editor-history.util.ts @@ -1,20 +1,26 @@ const AVRJS8_EDITOR_HISTORY = 'AVRJS8_EDITOR_HISTORY'; export class EditorHistoryUtil { - static hasLocalStorage: boolean = !!window.localStorage; + static hasLocalStorage = !!window.localStorage; static storeSnippet(codeSnippet: string) { - if (!EditorHistoryUtil.hasLocalStorage) return; + if (!EditorHistoryUtil.hasLocalStorage) { + return; + } window.localStorage.setItem(AVRJS8_EDITOR_HISTORY, codeSnippet); } static clearSnippet() { - if (!EditorHistoryUtil.hasLocalStorage) return; + if (!EditorHistoryUtil.hasLocalStorage) { + return; + } localStorage.removeItem(AVRJS8_EDITOR_HISTORY); } static getValue() { - if (!EditorHistoryUtil.hasLocalStorage) return; + if (!EditorHistoryUtil.hasLocalStorage) { + return; + } return localStorage.getItem(AVRJS8_EDITOR_HISTORY); } } -- cgit v1.2.3