File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func GetCidEncoder(req *cmds.Request) (cidenc.Encoder, error) {
21
21
22
22
// GetLowLevelCidEncoder is like GetCidEncoder but meant to be used by
23
23
// lower level commands. It differs from GetCidEncoder in that CIDv0
24
- // and not, by default, auto-upgraded to CIDv1.
24
+ // are not, by default, auto-upgraded to CIDv1.
25
25
func GetLowLevelCidEncoder (req * cmds.Request ) (cidenc.Encoder , error ) {
26
26
return getCidBase (req , false )
27
27
}
@@ -62,7 +62,7 @@ func CidBaseDefined(req *cmds.Request) bool {
62
62
// encoder is used and automatic upgrades are disabled. For CidV1 the
63
63
// multibase from the CID is used and upgrades are eneabled. On error
64
64
// the base encoder is returned. If you don't care about the error
65
- // condiation it is safe to ignore the error returned.
65
+ // condition, it is safe to ignore the error returned.
66
66
func CidEncoderFromPath (enc cidenc.Encoder , p string ) (cidenc.Encoder , error ) {
67
67
v , err := extractCidString (p )
68
68
if err != nil {
Original file line number Diff line number Diff line change @@ -337,9 +337,8 @@ Example:
337
337
return err
338
338
}
339
339
340
- refKeys := map [string ]RefKeyObject {}
340
+ refKeys := make ( map [string ]RefKeyObject , len ( keys ))
341
341
for k , v := range keys {
342
- delete (keys , k )
343
342
refKeys [enc .Encode (k )] = v
344
343
}
345
344
You can’t perform that action at this time.
0 commit comments