Skip to content

Commit

Permalink
fix(parser): Correctly detect process
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari authored and clementdessoude committed Aug 15, 2023
1 parent 2b81885 commit dd9cc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/java-parser/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
function getSkipValidations() {
return (
(process && // (not every runtime has a global `process` object
(typeof process !== "undefined" && // (not every runtime has a global `process` object
process.env &&
process.env["prettier-java-development-mode"] === "enabled") === false
);
Expand Down

0 comments on commit dd9cc97

Please sign in to comment.