Skip to content

Commit ad9e935

Browse files
committed
Fix fileprocessor (2)
1 parent e126bf4 commit ad9e935

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/helpers/fileProcessor.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,7 @@ export const getBackendForFile = (filePath) => {
8888
// Simple text file reader
8989
const processWithSimple = (filePath) => {
9090
try {
91-
let toast;
92-
showToast({
93-
style: Toast.Style.Animated,
94-
title: `Reading ${path.basename(filePath)}`,
95-
message: `Using Simple Reader...`,
96-
}).then((t) => {
97-
toast = t;
98-
});
9991
const content = fs.readFileSync(filePath, "utf8");
100-
if (toast) toast.hide();
10192
return {
10293
content,
10394
backend: FileBackend.SIMPLE,
@@ -115,7 +106,6 @@ const processWithSimple = (filePath) => {
115106

116107
// Process file using markitdown
117108
const processWithMarkitdown = (filePath) => {
118-
const fileName = path.basename(filePath);
119109
let toast;
120110

121111
try {

0 commit comments

Comments
 (0)