Skip to content

Commit 6f04245

Browse files
committed
Refactor
1 parent 2e54304 commit 6f04245

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export default function glslOptimize(userOptions = {}) {
7575
const stage = stageRegexes.find(([, regex]) => id.match(regex))?.[0];
7676
if (!stage) {
7777
this.error({ message: `File '${id}' : extension did not match a shader stage.` });
78-
return;
7978
}
8079

8180
try {
@@ -84,7 +83,6 @@ export default function glslOptimize(userOptions = {}) {
8483
return result;
8584
} catch (err) {
8685
this.error({ message: `Error processing GLSL source:\n${err.message}` });
87-
return;
8886
}
8987
},
9088
};

0 commit comments

Comments
 (0)