Skip to content

Commit

Permalink
Removing unneccessary optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Aug 4, 2020
1 parent 2ebfe60 commit 73adc99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const buildSeverityFromMapping = ({
let severityMatch: SeverityMappingItem | undefined;

// Sort the SeverityMapping from low to high, so last match (highest severity) is used
const severityMappingSorted = severityMapping?.sort(
const severityMappingSorted = severityMapping.sort(
(a, b) => severitySortMapping[a.severity] - severitySortMapping[b.severity]
);

Expand Down

0 comments on commit 73adc99

Please sign in to comment.