Skip to content

Commit 3067eee

Browse files
author
Iurii Golovinskii
committed
[FE] Fixed naming files
1 parent 3310eb8 commit 3067eee

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/components/compare/bwc.validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { BREAKING_CHANGE_TYPE, OperationChanges } from '../../types'
1818
import { API_KIND } from '../../consts'
19-
import { markChangeAsSemiBreaking } from '../../utils/changes'
19+
import { markChangeAsRisky } from '../../utils/changes'
2020

2121
export function validateBwcBreakingChanges(
2222
operationChanges: OperationChanges,
@@ -31,6 +31,6 @@ export function validateBwcBreakingChanges(
3131
if (diff.type !== BREAKING_CHANGE_TYPE) {
3232
continue
3333
}
34-
markChangeAsSemiBreaking(diff, operationChanges)
34+
markChangeAsRisky(diff, operationChanges)
3535
}
3636
}

src/utils/changes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { Diff } from '@netcracker/qubership-apihub-api-diff'
1818
import { BREAKING_CHANGE_TYPE, OperationChanges, RISKY_CHANGE_TYPE } from '../types'
1919

20-
export function markChangeAsSemiBreaking(diff: Diff, operationChange: OperationChanges): void {
20+
export function markChangeAsRisky(diff: Diff, operationChange: OperationChanges): void {
2121
diff.type = RISKY_CHANGE_TYPE
2222

2323
const {

src/utils/transformToDto.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,8 @@ export function convertDtoFieldOperationTypes<
168168
origin,
169169
override,
170170
}: OptionDiffReplacer = { origin: SEMI_BREAKING_CHANGE_TYPE, override: risky }): OperationType<J>[] {
171-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
172-
// @ts-ignore
173171
return operationTypes?.map((type) => {
174-
if(!type.changesSummary || !type.changesSummary ) return type
172+
// if(!type.changesSummary || !type.changesSummary ) return type
175173
return {
176174
...type,
177175
changesSummary: replacePropertyInChangesSummary<T, J>(type.changesSummary, {

0 commit comments

Comments
 (0)