Skip to content

Commit a61b2fa

Browse files
committed
Formatting.
1 parent 80513df commit a61b2fa

15 files changed

+55
-55
lines changed

src/main/domain/datumIdentifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ export default class DatumIdentifier implements JsonEncodable {
153153
objectIdOrAgg instanceof Aggregation
154154
? objectIdOrAgg
155155
: aggregation !== undefined
156-
? aggregation
157-
: undefined;
156+
? aggregation
157+
: undefined;
158158
}
159159
if (this.constructor === DatumIdentifier) {
160160
Object.freeze(this);

src/main/domain/generalMetadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class GeneralMetadata {
3434
tags instanceof Set
3535
? tags
3636
: Array.isArray(tags)
37-
? new Set(tags)
38-
: undefined;
37+
? new Set(tags)
38+
: undefined;
3939
}
4040

4141
/**

src/main/domain/streamAggregateDatum.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class StreamAggregateDatum implements StreamedDatum, JsonEncodable {
181181
meta instanceof DatumStreamMetadataRegistry
182182
? meta.metadataForStreamId(streamId)
183183
: meta instanceof DatumStreamMetadata
184-
? meta
185-
: undefined;
184+
? meta
185+
: undefined;
186186
if (this.constructor === StreamAggregateDatum) {
187187
Object.freeze(this);
188188
}
@@ -256,8 +256,8 @@ class StreamAggregateDatum implements StreamedDatum, JsonEncodable {
256256
meta instanceof DatumStreamMetadataRegistry
257257
? meta.metadataForStreamId(this.streamId)
258258
: meta instanceof DatumStreamMetadata
259-
? meta
260-
: this.meta;
259+
? meta
260+
: this.meta;
261261
if (!m) {
262262
return undefined;
263263
}
@@ -401,16 +401,16 @@ class StreamAggregateDatum implements StreamedDatum, JsonEncodable {
401401
meta instanceof DatumStreamMetadata
402402
? meta
403403
: meta instanceof DatumStreamMetadataRegistry
404-
? meta.metadataForStreamId(data[0])
405-
: undefined;
404+
? meta.metadataForStreamId(data[0])
405+
: undefined;
406406
} else {
407407
// treat as a registry-indexed stream datum
408408
m =
409409
meta instanceof DatumStreamMetadata
410410
? meta
411411
: meta instanceof DatumStreamMetadataRegistry
412-
? meta.metadataAt(data[0])
413-
: undefined;
412+
? meta.metadataAt(data[0])
413+
: undefined;
414414
}
415415
if (!m) {
416416
return undefined;

src/main/domain/streamDatum.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class StreamDatum implements StreamedDatum, JsonEncodable {
9292
meta instanceof DatumStreamMetadataRegistry
9393
? meta.metadataForStreamId(streamId)
9494
: meta instanceof DatumStreamMetadata
95-
? meta
96-
: undefined;
95+
? meta
96+
: undefined;
9797
if (this.constructor === StreamDatum) {
9898
Object.freeze(this);
9999
}
@@ -157,8 +157,8 @@ class StreamDatum implements StreamedDatum, JsonEncodable {
157157
meta instanceof DatumStreamMetadataRegistry
158158
? meta.metadataForStreamId(this.streamId)
159159
: meta instanceof DatumStreamMetadata
160-
? meta
161-
: this.meta;
160+
? meta
161+
: this.meta;
162162
if (!m) {
163163
return undefined;
164164
}
@@ -275,16 +275,16 @@ class StreamDatum implements StreamedDatum, JsonEncodable {
275275
meta instanceof DatumStreamMetadata
276276
? meta
277277
: meta instanceof DatumStreamMetadataRegistry
278-
? meta.metadataForStreamId(data[0])
279-
: undefined;
278+
? meta.metadataForStreamId(data[0])
279+
: undefined;
280280
} else {
281281
// treat as a registry-indexed stream datum
282282
m =
283283
meta instanceof DatumStreamMetadata
284284
? meta
285285
: meta instanceof DatumStreamMetadataRegistry
286-
? meta.metadataAt(data[0])
287-
: undefined;
286+
? meta.metadataAt(data[0])
287+
: undefined;
288288
}
289289
if (!m) {
290290
return undefined;

src/main/net/authV2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class AuthorizationV2Builder {
430430
const existingIndex = Array.isArray(signedHeaders)
431431
? signedHeaders.findIndex(
432432
caseInsensitiveEqualsFn(HttpHeaders.X_SN_DATE)
433-
)
433+
)
434434
: -1;
435435
return (
436436
existingIndex >= 0 ||
@@ -443,7 +443,7 @@ class AuthorizationV2Builder {
443443
const existingIndex = Array.isArray(signedHeaders)
444444
? signedHeaders.findIndex(
445445
caseInsensitiveEqualsFn(HttpHeaders.X_SN_DATE)
446-
)
446+
)
447447
: -1;
448448
if (enabled && existingIndex < 0) {
449449
signedHeaders = signedHeaders

src/main/net/nodeMetadataUrlHelperMixin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ const NodeMetadataUrlHelperMixin = <T extends UrlHelperConstructor>(
8484
const nodeIds: number[] | null | undefined = Array.isArray(nodeId)
8585
? nodeId
8686
: nodeId
87-
? [nodeId]
88-
: nodeId !== null
89-
? this.param("nodeIds")
90-
: undefined;
87+
? [nodeId]
88+
: nodeId !== null
89+
? this.param("nodeIds")
90+
: undefined;
9191
let result = this.baseUrl() + "/nodes/meta";
9292
let params = "";
9393
if (Array.isArray(nodeIds)) {

src/main/net/userNodesUrlHelperMixin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const UserUrlHelperMixin = <T extends UrlHelperConstructor>(superclass: T) =>
5656
const nodes: number[] | undefined = Array.isArray(nodeId)
5757
? nodeId
5858
: nodeId
59-
? [nodeId]
60-
: this.param(DatumFilterKeys.NodeIds);
59+
? [nodeId]
60+
: this.param(DatumFilterKeys.NodeIds);
6161
const result =
6262
this.baseUrl() +
6363
"/nodes/archived?nodeIds=" +

src/main/tool/controlToggler.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default class ControlToggler {
171171
? new AuthorizationV2Builder(
172172
auth.tokenId,
173173
queryApi.environment
174-
).key(auth.key()!)
174+
).key(auth.key()!)
175175
: auth;
176176
}
177177

@@ -292,9 +292,9 @@ export default class ControlToggler {
292292
return statusDate > instructionDate
293293
? controlDatum.val
294294
: Array.isArray(instruction.parameters) &&
295-
instruction.parameters.length > 0
296-
? instruction.parameters[0].value
297-
: undefined;
295+
instruction.parameters.length > 0
296+
? instruction.parameters[0].value
297+
: undefined;
298298
}
299299

300300
/**
@@ -566,8 +566,8 @@ export default class ControlToggler {
566566
execInstruction
567567
? execInstruction
568568
: pendingInstruction
569-
? pendingInstruction
570-
: this.#lastKnownInstruction
569+
? pendingInstruction
570+
: this.#lastKnownInstruction
571571
);
572572
const currValue = this.value();
573573
// note != (loose) comparison for string to number coersion

src/main/tool/datumLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export default class DatumLoader
510510
undefined,
511511
undefined,
512512
page
513-
)
513+
)
514514
: this.api.listDatumUrl(queryFilter, undefined, page);
515515
if (this.#urlParameters) {
516516
const queryParams = urlQueryEncode(this.#urlParameters);

src/main/util/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class Configuration implements Record<string, any> {
138138
newMap instanceof PropMap
139139
? newMap.props
140140
: newMap instanceof Map
141-
? newMap
142-
: Object.entries(newMap);
141+
? newMap
142+
: Object.entries(newMap);
143143
for (const [k, v] of itr) {
144144
this.value(k, v);
145145
}

0 commit comments

Comments
 (0)