Skip to content
Snippets Groups Projects
Commit 76e4dcf7 authored by Jeromy Johnson's avatar Jeromy Johnson
Browse files

appease codeclimate


License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 1a75c40f
Branches
Tags
No related merge requests found
...@@ -501,7 +501,8 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string, ...@@ -501,7 +501,8 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
child.val = val child.val = val
return nil return nil
} else { }
if val == nil { if val == nil {
return os.ErrNotExist return os.ErrNotExist
} }
...@@ -529,7 +530,6 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string, ...@@ -529,7 +530,6 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
ds.setChild(cindex, ns) ds.setChild(cindex, ns)
return nil return nil
}
default: default:
return fmt.Errorf("unexpected type for child: %#v", child) return fmt.Errorf("unexpected type for child: %#v", child)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment