From b68c4a264d0658a8f7217f13ef003b9e666c3ded Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 18 Jun 2018 19:16:23 -0700 Subject: [PATCH] go fmt --- protocols.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols.go b/protocols.go index 62166ea..175c5fe 100644 --- a/protocols.go +++ b/protocols.go @@ -3,8 +3,8 @@ package multiaddr import ( "encoding/binary" "fmt" - "strings" "math/bits" + "strings" ) // Protocol is a Multiaddr protocol description structure. @@ -170,7 +170,7 @@ func ProtocolsWithString(s string) ([]Protocol, error) { // CodeToVarint converts an integer to a varint-encoded []byte func CodeToVarint(num int) []byte { - buf := make([]byte, bits.Len(uint(num))/7 + 1) + buf := make([]byte, bits.Len(uint(num))/7+1) n := binary.PutUvarint(buf, uint64(num)) return buf[:n] }