Fix Typo to improve GoReport

Signed-off-by: asifdxtreme <mohammad.asif.siddiqui1@huawei.com>
This commit is contained in:
asifdxtreme 2017-08-15 10:15:01 +08:00
parent 4311020c36
commit 1442ba988a
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
// GetDiff returns the differences betwen the two images, layers, or containers // GetDiff returns the differences between the two images, layers, or containers
func (c *ContainerServer) GetDiff(from, to string) ([]archive.Change, error) { func (c *ContainerServer) GetDiff(from, to string) ([]archive.Change, error) {
toLayer, err := c.getLayerID(to) toLayer, err := c.getLayerID(to)
if err != nil { if err != nil {

View file

@ -250,7 +250,7 @@ func ensureSaneLogPath(logPath string) error {
// symlink and we need to remove it. // symlink and we need to remove it.
fi, err := os.Lstat(logPath) fi, err := os.Lstat(logPath)
if err != nil || fi.Mode()&os.ModeSymlink == 0 { if err != nil || fi.Mode()&os.ModeSymlink == 0 {
// Non-existant files and non-symlinks aren't our problem. // Non-existent files and non-symlinks aren't our problem.
return nil return nil
} }

View file

@ -49,7 +49,7 @@ func (s *Server) PullImage(ctx context.Context, req *pb.PullImageRequest) (*pb.P
options := &copy.Options{ options := &copy.Options{
SourceCtx: &types.SystemContext{}, SourceCtx: &types.SystemContext{},
} }
// Specifiying a username indicates the user intends to send authentication to the registry. // Specifying a username indicates the user intends to send authentication to the registry.
if username != "" { if username != "" {
options.SourceCtx = &types.SystemContext{ options.SourceCtx = &types.SystemContext{
DockerAuthConfig: &types.DockerAuthConfig{ DockerAuthConfig: &types.DockerAuthConfig{