@@ -87,7 +87,7 @@ const eventMappers = {
87
87
let events = await listEvents ( username , after ) ;
88
88
let suggestions = { } ;
89
89
let unmappedUsers = { } ;
90
- events . forEach ( evt => {
90
+ events . forEach ( ( evt ) => {
91
91
const username = evt . actor . login ;
92
92
const email = cfg . users [ username ] ;
93
93
if ( ! email ) {
@@ -132,7 +132,7 @@ async function listEvents(username, after) {
132
132
page,
133
133
per_page : 20 ,
134
134
} ) ;
135
- data . forEach ( evt => {
135
+ data . forEach ( ( evt ) => {
136
136
if ( new Date ( evt . created_at ) > after ) events . push ( evt ) ;
137
137
else done = true ;
138
138
} ) ;
@@ -152,7 +152,7 @@ async function listEvents(username, after) {
152
152
// Fetches the 'login' name for each org the user is a member of.
153
153
async function listOrgs ( ) {
154
154
let resp = await client . orgs . listForAuthenticatedUser ( { per_page : 100 } ) ;
155
- return resp . data . map ( org => org . login ) ;
155
+ return resp . data . map ( ( org ) => org . login ) ;
156
156
}
157
157
158
158
// Sends a suggestion to the Range webhook specified in the config.
@@ -168,9 +168,9 @@ async function makeSuggestion(suggestion) {
168
168
} ,
169
169
} ;
170
170
171
- let req = https . request ( cfg . rangeWebhook , opts , res => {
171
+ let req = https . request ( cfg . rangeWebhook , opts , ( res ) => {
172
172
res . setEncoding ( 'utf8' ) ;
173
- res . on ( 'data' , chunk => {
173
+ res . on ( 'data' , ( chunk ) => {
174
174
console . log ( chunk ) ;
175
175
} ) ;
176
176
res . on ( 'end' , ( ) => {
0 commit comments