File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ function emailClients(clients) {
272272

273273
**Good:**
274274
```javascript
275-
function emailClients(clients) {
275+
function emailActiveClients(clients) {
276276
clients
277-
.filter(isClientActive)
277+
.filter(isActiveClient)
278278
.forEach(email);
279279
}
280280

281-
function isClientActive(client) {
281+
function isActiveClient(client) {
282282
const clientRecord = database.lookup(client);
283283
return clientRecord.isActive();
284284
}

0 commit comments

Comments
 (0)