message: PR Comments: Add early return, swap if with ternary
diff: @@ -126,20 +126,11 @@ export class EnvironmentPage extends PromiseComponent {
  const { currentEnvVars } = prevState;
  const { rawEnvData, readOnly } = nextProps;
  const incomingEnvVars = envVarsToArray(rawEnvData);
  - if (!_.isEqual(incomingEnvVars, currentEnvVars)) {
  - if(readOnly) {
  - return {
  - currentEnvVars: envVarsToArray(rawEnvData)
  - };
  - }
  - return {
  - stale: true,
  - success: null
  - };
  - }
  -
  + if (_.isEqual(incomingEnvVars, currentEnvVars)) {
  return null;
  }
  + return readOnly ? { currentEnvVars: incomingEnvVars } : { stale: true, success: null };
  + }
  