Skip to content

Commit d6bc173

Browse files
committed
Remove round brackets in single-argument lambdas
1 parent 9393f0e commit d6bc173

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JavaScript/2-insert-link-to.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Graph {
7272
to(...destinations) {
7373
const from = vertices.get(source);
7474
if (from) {
75-
destinations.forEach((destination) => {
75+
destinations.forEach(destination => {
7676
const target = vertices.get(destination);
7777
if (target) from.link(target);
7878
});

JavaScript/3-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Graph {
7373
to(...destinations) {
7474
const from = vertices.get(source);
7575
if (from) {
76-
destinations.forEach((destination) => {
76+
destinations.forEach(destination => {
7777
const target = vertices.get(destination);
7878
if (target) from.link(target);
7979
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy