Skip to content

Commit 4d5c071

Browse files
committed
chore: lint
1 parent af555c1 commit 4d5c071

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main/redux/sagas/win/session/library.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// ==LICENSE-END==
77

88
import debug_ from "debug";
9-
import { normalizeWinBoundRectangle } from "readium-desktop/common/rectangle/window";
109
import { takeSpawnLeading } from "readium-desktop/common/redux/sagas/takeSpawnLeading";
1110
import { error } from "readium-desktop/main/tools/error";
1211
import { winActions } from "readium-desktop/main/redux/actions";
@@ -76,7 +75,7 @@ function* libraryMoveOrResizeObserver(action: winActions.session.registerLibrary
7675
yield debounce(DEBOUNCE_TIME, channel, function*() {
7776

7877
try {
79-
let winBound = library.getBounds(); // current bounds of the window maximized/fullscreen/minimized (not on windows11, specific events)
78+
const winBound = library.getBounds(); // current bounds of the window maximized/fullscreen/minimized (not on windows11, specific events)
8079
debug("_______2 library.getBounds()", winBound);
8180
// winBound = normalizeWinBoundRectangle(winBound);
8281
yield put(winActions.session.setBound.build(id, winBound));

src/main/redux/sagas/win/session/reader.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// ==LICENSE-END==
77

88
import debug_ from "debug";
9-
import { normalizeWinBoundRectangle } from "readium-desktop/common/rectangle/window";
109
import { takeSpawnEvery } from "readium-desktop/common/redux/sagas/takeSpawnEvery";
1110
import { error } from "readium-desktop/main/tools/error";
1211
import { winActions } from "readium-desktop/main/redux/actions";
@@ -77,7 +76,7 @@ function* readerMoveOrResizeObserver(action: winActions.session.registerReader.T
7776
yield debounce(DEBOUNCE_TIME, channel, function*() {
7877

7978
try {
80-
let winBound = reader.getBounds();
79+
const winBound = reader.getBounds();
8180
debug("_______1 reader.getBounds()", winBound);
8281
// winBound = normalizeWinBoundRectangle(winBound);
8382
yield put(winActions.session.setBound.build(id, winBound));

0 commit comments

Comments
 (0)