Skip to content

Commit 8b98239

Browse files
committed
code cleanup pt3
1 parent 1ac9125 commit 8b98239

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/CodeEditor/CodeMirror.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@
3434
import searchDoc from "../SearchProgram.js";
3535
3636
const { ipcRenderer } = require("electron");
37-
37+
3838
import {
3939
editorCache,
4040
codeMirrorEditor,
4141
currentTabFilePath,
4242
} from "../DataStore/SvelteStormDataStore";
43-
import { lang } from "moment";
4443
4544
export let value;
4645
export let language;
@@ -154,7 +153,7 @@ import { lang } from "moment";
154153
}
155154
});
156155
157-
afterUpdate(async (): Promise<void> => { // this runs 3x when a file is opened
156+
afterUpdate(async (): Promise<void> => {
158157
if (!noUpdate && !showToolTripTransition) {
159158
if (codeMirrorEditor) {
160159
// retrieve code from DirectoryStore.js and store cached code of the tab that the user clicked on

0 commit comments

Comments
 (0)