ResultadosDigitais/matrix

View on GitHub
backend/app/helpers/environment.js

Summary

Maintainability
A
0 mins
Test Coverage
const environment = {
  parseVariable(envVar) {
    if (envVar) {
      try {
        return JSON.parse(envVar);
      // eslint-disable-next-line no-empty
      } catch (error) {}
    }

    return undefined;
  },
};

module.exports = environment;