Skip to content

Commit

Permalink
Merge pull request #109 from particle-iot/minor/assignment-to-const-var
Browse files Browse the repository at this point in the history
use let instead of const
  • Loading branch information
keeramis committed Jun 3, 2024
2 parents 81868f2 + b0e1a9f commit 32d7b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/network-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ const NetworkDevice = base => class extends base {
} = reply.interface;

const activeFlags = this._getActiveFlags(flags, proto.InterfaceFlag);
const flagsStrings = activeFlags.map(flag => InterfaceFlag.fromProtobuf(flag));
let flagsStrings = activeFlags.map(flag => InterfaceFlag.fromProtobuf(flag));
flagsStrings = [...new Set(flagsStrings)];

const result = {
index: ifaceIndex,
Expand Down

0 comments on commit 32d7b1c

Please sign in to comment.