Skip to content

Commit

Permalink
code cleanup. delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
meme112233 committed Jul 18, 2024
1 parent 86592ed commit 62878a3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions libs/hdf-converters/src/msft-config-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
SecureScoreControlProfile
} from '@microsoft/microsoft-graph-types';
import {ExecJSON} from 'inspecjs';
import * as _ from 'lodash';

import {version as HeimdallToolsVersion} from '../package.json';

Expand All @@ -20,20 +19,6 @@ export class MsftConfigMapper extends BaseConverter {
this.profiles = rawParams.profiles.value as SecureScoreControlProfile[];
}

private getImpact(userImpact: string): number {
const normalized = userImpact.toLowerCase();
if (normalized.search('high') !== -1) {
return 1.0;
} else if (
normalized.search('moderate') !== -1 ||
normalized.search('medium') !== -1
) {
return 0.5;
} else {
return 0.0;
}
}

mappings: MappedTransform<
ExecJSON.Execution & {passthrough: unknown},
ILookupPath
Expand Down

0 comments on commit 62878a3

Please sign in to comment.