Skip to content

Commit 3984ec1

Browse files
committed
lint fix
Signed-off-by: Borys <boris.shkliar@envisionblockchain.com>
1 parent cb514fc commit 3984ec1

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

policy-service/src/policy-engine/blocks/external-data-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import { RecordActionStep } from '../record-action-step.js';
5757
title: 'Set Relayer Account',
5858
type: PropertyType.Checkbox,
5959
editable: false
60-
},
60+
},
6161
{
6262
name: 'forceRelayerAccount',
6363
label: 'Force User Account',

policy-service/src/policy-engine/blocks/information-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { IPolicyGetData } from '@policy-engine/policy-engine.interface.js';
3939
type: PropertyType.Input,
4040
editable: true
4141
},
42-
{
42+
{
4343
name: 'description',
4444
label: 'Description',
4545
title: 'Description',

policy-service/src/policy-engine/blocks/switch-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ import { LocationType } from '@guardian/interfaces';
9191
}
9292
]
9393
}
94-
},
94+
},
9595
]
9696
},
9797
variables: []

policy-service/src/policy-engine/helpers/decorators/basic-block.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,12 +933,16 @@ export function BasicBlock<T>(options: Partial<PolicyBlockDecoratorOptions>) {
933933
}
934934

935935
setPropValue(properties:any, path:string, value:any) {
936-
if (!path) return;
936+
if (!path) {
937+
return;
938+
}
937939

938940
const keys = path.split('.');
939941
const last = keys.pop();
940-
if (!last) return;
941-
942+
if (!last) {
943+
return;
944+
}
945+
942946
let current = properties;
943947

944948
for (const key of keys) {

0 commit comments

Comments
 (0)