Merge pull request #767 from asifdxtreme/patch2
Fix Typo to improve GoReport
This commit is contained in:
commit
43df5b89af
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ func (s *Server) PullImage(ctx context.Context, req *pb.PullImageRequest) (*pb.P
|
||||||
options := ©.Options{
|
options := ©.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{
|
||||||
|
|
Loading…
Reference in a new issue