Skip to content

Commit ed2543a

Browse files
committed
format fix
1 parent f0c9bdf commit ed2543a

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

KeeperSdk/src/pam/rotation/addRotationScript.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ export async function addRotationScript(
112112
}
113113
}
114114

115-
const scriptField = dataFields.find(
116-
(field) => field.type === SCRIPT_FIELD_TYPE && Array.isArray(field.value)
117-
)
115+
const scriptField = dataFields.find((field) => field.type === SCRIPT_FIELD_TYPE && Array.isArray(field.value))
118116
if (scriptField) {
119117
scriptField.label = SCRIPT_FIELD_LABEL
120118
scriptField.required = false

KeeperSdk/src/pam/rotation/listRotations.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export function formatRotationSchedulesTable(
101101
options: FormatRotationSchedulesTableOptions = {}
102102
): FormattedRotationSchedulesTable {
103103
const verbose = options.verbose === true
104-
const headers: string[] = verbose
105-
? [...ROTATION_LIST_VERBOSE_HEADERS]
106-
: [...ROTATION_LIST_DEFAULT_HEADERS]
104+
const headers: string[] = verbose ? [...ROTATION_LIST_VERBOSE_HEADERS] : [...ROTATION_LIST_DEFAULT_HEADERS]
107105

108106
const rows = result.rotations.map((rotation) => {
109107
if (verbose) {

keeperapi/src/node/platform.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import type { KeeperHttpResponse } from '../commands'
1616
// `form-data` uses CommonJS `export =`. Depending on the consumer/build target,
1717
// a namespace import may expose the constructor as either the module itself or
1818
// its `default` property.
19-
const FormData =
20-
(FormDataModule as unknown as { default?: typeof FormDataModule }).default || FormDataModule
19+
const FormData = (FormDataModule as unknown as { default?: typeof FormDataModule }).default || FormDataModule
2120

2221
const base64ToBytes = (data: string): Uint8Array => {
2322
return Buffer.from(data, 'base64')

0 commit comments

Comments
 (0)