Skip to content

Commit eacfd39

Browse files
authored
Update method formatting (#834)
* chore: transport * chore: other libs
1 parent 33ff89a commit eacfd39

File tree

8 files changed

+9
-0
lines changed

8 files changed

+9
-0
lines changed

packages/content/src/attributes/types/measurements/AbstractMeasurement.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export abstract class AbstractMeasurement extends AbstractComplexValue implement
4848
}
4949
});
5050
}
51+
5152
public override toString(): string {
5253
return `${this.value} ${this.unit}`;
5354
}

packages/core-types/src/Random.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ export class Random implements IRandom {
4545
public static async bytes(length: number): Promise<ICoreBuffer> {
4646
return await CryptoRandom.bytes(length);
4747
}
48+
4849
public static async int(length: number): Promise<number> {
4950
if (length > 21 || length <= 0) {
5051
throw new Error("Length must be between 1 and 21.");
5152
}
5253
return parseInt(await this.string(length, RandomCharacterRange.Digit));
5354
}
55+
5456
public static async array(length: number): Promise<any> {
5557
return (await CryptoRandom.bytes(length)).toArray();
5658
}

packages/runtime/test/modules/startup.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class CustomModuleAllowingMultipleInstances extends RuntimeModule {
6161
public override init(): void {
6262
// noop
6363
}
64+
6465
public override start(): void {
6566
// noop
6667
}

packages/transport/src/modules/accounts/AccountController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export class AccountController {
9090
}
9191
return this._activeDevice;
9292
}
93+
9394
public get activeDeviceOrUndefined(): DeviceController | undefined {
9495
return this._activeDevice;
9596
}

packages/transport/src/modules/devices/DeviceController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class DeviceController extends TransportController {
4646
if (!this._device) throw new TransportError("The Device controller is not initialized.");
4747
return this._device;
4848
}
49+
4950
public get deviceOrUndefined(): Device | undefined {
5051
return this._device;
5152
}

packages/transport/src/modules/sync/SynchronizedCollection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ ${new Error().stack}`);
233233
public async count(query?: any): Promise<number> {
234234
return await this.parent.count(query);
235235
}
236+
236237
public async exists(query?: any): Promise<boolean> {
237238
return await this.parent.exists(query);
238239
}

packages/transport/src/modules/sync/externalEventProcessors/ExternalEventProcessor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export abstract class ExternalEventProcessor {
1313
protected readonly eventBus: EventBus,
1414
protected readonly accountController: AccountController
1515
) {}
16+
1617
public abstract execute(externalEvent: ExternalEvent): Promise<Message | Relationship | IdentityDeletionProcess | File | undefined>;
1718
protected get ownAddress(): string {
1819
return this.accountController.identity.address.toString();

packages/transport/test/testHelpers/FakeDatabaseCollection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export class FakeDatabaseCollection implements IDatabaseCollection {
7575
public count(_query: object): Promise<number> {
7676
throw new Error("Method not implemented.");
7777
}
78+
7879
public exists(_query: object): Promise<boolean> {
7980
throw new Error("Method not implemented.");
8081
}

0 commit comments

Comments
 (0)