Skip to content

Commit

Permalink
tiny code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jul 22, 2018
1 parent 7e7150b commit 0cea8af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ export class EditJobFlyout extends Component {
jobGroupsValidationError = validateGroupNames(jobDetails.jobGroups).message;
}

const valid = (jobModelMemoryLimitValidationError === '' && jobGroupsValidationError === '');

this.setState({
...jobDetails,
jobModelMemoryLimitValidationError,
jobGroupsValidationError,
valid: (jobModelMemoryLimitValidationError === '' && jobGroupsValidationError === '')
valid,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function validateModelMemoryLimit(mml) {
}
};
const validationResults = validateModelMemoryLimitUtils(tempJob, limits);

const { valid } = validationResults;

const modelMemoryLimit = {
Expand Down

0 comments on commit 0cea8af

Please sign in to comment.