Skip to content

Commit ef6454a

Browse files
committed
CR: fix ++ --> +=1
1 parent 8b48454 commit ef6454a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks/use-file-upload.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ export function useFileUpload({
8686
// Global drag events with counter for robust dragOver state
8787
const handleWindowDragEnter = (e: DragEvent) => {
8888
if (e.dataTransfer?.types?.includes("Files")) {
89-
dragCounter.current++;
89+
dragCounter.current += 1;
9090
setDragOver(true);
9191
}
9292
};
9393
const handleWindowDragLeave = (e: DragEvent) => {
9494
if (e.dataTransfer?.types?.includes("Files")) {
95-
dragCounter.current--;
95+
dragCounter.current -= 1;
9696
if (dragCounter.current <= 0) {
9797
setDragOver(false);
9898
dragCounter.current = 0;
@@ -204,7 +204,7 @@ export function useFileUpload({
204204
const items = e.clipboardData.items;
205205
if (!items) return;
206206
const files: File[] = [];
207-
for (let i = 0; i < items.length; i++) {
207+
for (let i = 0; i < items.length; i += 1) {
208208
const item = items[i];
209209
if (item.kind === "file") {
210210
const file = item.getAsFile();

0 commit comments

Comments
 (0)