mirror of
https://github.com/moby/moby.git
synced 2026-07-24 00:11:49 +00:00
libnetwork: resolvconf: remove var that shadowed import
It was only used in a single place, so we can remove the intermediate variable. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -377,8 +377,7 @@ func (rc *ResolvConf) WriteFile(path, hashPath string, perm os.FileMode) error {
|
||||
}
|
||||
defer hashFile.Close()
|
||||
|
||||
digest := digest.FromBytes(content)
|
||||
if _, err = hashFile.Write([]byte(digest)); err != nil {
|
||||
if _, err = hashFile.Write([]byte(digest.FromBytes(content))); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user