Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Jul 25, 2024
1 parent fa1336b commit ccaa4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/electron-serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function electronServe(options: ServeOptions) {
const handler: HandlerType = async (request, callback) => {
const filePath = path.join(mandatoryOptions.directory, decodeURIComponent(new URL(request.url).pathname));
const resolvedPath = (await getPath(filePath)) ?? path.join(mandatoryOptions.directory, `${mandatoryOptions.file}.html`);
const mimeType = (mime.lookup(resolvedPath) || 'application/octet-stream') as string;
const mimeType = mime.lookup(resolvedPath) || 'application/octet-stream';

try {
const data = await fs.promises.readFile(resolvedPath);
Expand Down

0 comments on commit ccaa4e3

Please sign in to comment.