Skip to content

Commit

Permalink
Using Prettier on update tool groups modal
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Jan 31, 2024
1 parent 8f608d7 commit b687374
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ export class UpdateToolGroupComponent
if (invalidResults.length) {
const errorStrings = invalidResults.map((result) => {

Check warning on line 242 in src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts

View check run for this annotation

Codecov / codecov/patch

src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts#L242

Added line #L242 was not covered by tests
if (typeof result === 'string') {
return result
return result;

Check warning on line 244 in src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts

View check run for this annotation

Codecov / codecov/patch

src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts#L244

Added line #L244 was not covered by tests
} else if (typeof result.error === 'string') {
return result.error
return result.error;

Check warning on line 246 in src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts

View check run for this annotation

Codecov / codecov/patch

src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts#L246

Added line #L246 was not covered by tests
} else {
console.log('Unknown error occured while updating', result)
return 'Unknown error occured. Please see console log'
console.log('Unknown error occured while updating', result);
return 'Unknown error occured. Please see console log';

Check warning on line 249 in src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts

View check run for this annotation

Codecov / codecov/patch

src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts#L248-L249

Added lines #L248 - L249 were not covered by tests
}
})
});
throw new Error(errorStrings.join('. '));

Check warning on line 252 in src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts

View check run for this annotation

Codecov / codecov/patch

src/app/components/edit-tool-group/update-tool-group/update-tool-group.component.ts#L252

Added line #L252 was not covered by tests
} else {
super.saveToolGroup();
Expand Down

0 comments on commit b687374

Please sign in to comment.