Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit d157def

Browse files
committed
style: prefer const over let
Prefer const over let when the binding is static, in order to comply with an upcoming Standard rule.
1 parent 3aad2ed commit d157def

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/compliance.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const TCP = require('../src')
88
describe('interface-transport compliance', () => {
99
tests({
1010
setup (cb) {
11-
let tcp = new TCP()
11+
const tcp = new TCP()
1212
const addrs = [
1313
multiaddr('/ip4/127.0.0.1/tcp/9091'),
1414
multiaddr('/ip4/127.0.0.1/tcp/9092'),

0 commit comments

Comments
 (0)