Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 48a2b44

Browse files
author
Kerry Archibald
committed
polish
Signed-off-by: Kerry Archibald <[email protected]>
1 parent 95b29c2 commit 48a2b44

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/stores/OwnBeaconStore.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,9 @@ export class OwnBeaconStore extends AsyncStoreWithClient<OwnBeaconStoreState> {
444444
try {
445445
console.log(beacon.beaconInfoId);
446446
await this.matrixClient.sendEvent(beacon.roomId, M_BEACON.name, content);
447-
// clear any error count
448447
this.incrementBeaconWireErrorCount(beacon.identifier, false);
449448
} catch (error) {
450449
logger.error(error);
451-
// increment error count for beacon
452450
this.incrementBeaconWireErrorCount(beacon.identifier, true);
453451
}
454452
};

test/stores/OwnBeaconStore-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ describe('OwnBeaconStore', () => {
825825
});
826826
});
827827

828-
describe('errors publishing positions', () => {
828+
describe('when publishing position fails', () => {
829829
beforeEach(() => {
830830
geolocation.watchPosition.mockImplementation(
831831
watchPositionMockImplementation([0, 1000, 3000, 3000, 3000]),

0 commit comments

Comments
 (0)