Skip to content

Commit

Permalink
use void keyword to mark promises as intentionally not awaited
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Oct 28, 2024
1 parent b6e3b6b commit bca463f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class ContactsContentComponent implements OnInit, OnDestroy {
contactsLoadingSummary,
filters,
]) => {
this.recordSearchTelemetry(this.selectedContact, selectedContact, filters);
void this.recordSearchTelemetry(this.selectedContact, selectedContact, filters);
if (this.selectedContact?._id !== selectedContact?._id) {
// reset view when selected contact changes
this.resetTaskAndReportsFilter();
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/ts/modules/reports/reports-content.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class ReportsContentComponent implements OnInit, OnDestroy {
selectedReports,
filters
]) => {
this.recordSearchTelemetry(this.selectedReports, selectedReport, filters);
void this.recordSearchTelemetry(this.selectedReports, selectedReport, filters);
if (selectedReport) {
this.selectedReports = [ selectedReport ];
} else {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/ts/services/select2-search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class Select2SearchService {

const search = selectEl.data('select2').dropdown.$search.val();
if (search) {
await this.searchTelemetryService.recordContactByTypeSearch(doc, search);
void this.searchTelemetryService.recordContactByTypeSearch(doc, search);
}
} catch (error) {
console.error('Select2 failed to get document', error);
Expand Down

0 comments on commit bca463f

Please sign in to comment.