fix: simplify
gitea/salix/pipeline/pr-master There was a failure building this commit Details
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-05-21 14:03:13 +02:00
parent d884192066
commit 1f2017c272
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
module.exports = (localAsProduction = true) => {
if ((!process.env.NODE_ENV && localAsProduction) || process.env.NODE_ENV == 'production') return true;
return (!process.env.NODE_ENV && localAsProduction) || process.env.NODE_ENV == 'production';
};