Skip to content

Commit 20067f7

Browse files
committed
chore: fix linting
1 parent 32a45e6 commit 20067f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@
3434

3535
import { isIPv4, isIPv6 } from '@chainsafe/is-ip'
3636
import { type Multiaddr } from '@multiformats/multiaddr'
37-
import { base64url } from 'multiformats/bases/base64'
3837
import { base58btc } from 'multiformats/bases/base58'
38+
import { base64url } from 'multiformats/bases/base64'
3939

40-
const toParts = (ma: Multiaddr) => {
40+
/**
41+
* Split a multiaddr into path components
42+
*/
43+
const toParts = (ma: Multiaddr): string[] => {
4144
return ma.toString().split('/').slice(1)
4245
}
4346

0 commit comments

Comments
 (0)