Skip to content

Commit

Permalink
style: Replace with 'OR' operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sprout2000 committed Oct 27, 2023
1 parent e5356d8 commit 9da2752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const App = () => {
const mime = await window.myAPI.mimecheck(filepath);

if (!mime || !mime.match(/png/)) {
const format = mime ? mime : "Unknown";
const format = mime || "Unknown";

dispatch({
log: `Unsupported format: ${format}`,
Expand Down

0 comments on commit 9da2752

Please sign in to comment.