aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-07-10 06:17:14 +0200
committerGitHub <noreply@github.com>2020-07-10 06:17:14 +0200
commite626226dea1d1e843b5295519f40cecdaa21004c (patch)
treef2ba63ba7b70e4c399630e08830772c883559804 /repository.go
parent58ac8636795fa45f6dbb3dcd6f3c3ebb01da8627 (diff)
parentd872dd9af2091b0f2d2cf1e80827a3a8e18be64f (diff)
downloadgo-git-e626226dea1d1e843b5295519f40cecdaa21004c.tar.gz
Merge pull request #123 from cristaloleg/check-err-fix
*: skip error check explicitly
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/repository.go b/repository.go
index 1f6de76..172029c 100644
--- a/repository.go
+++ b/repository.go
@@ -92,7 +92,7 @@ func Init(s storage.Storer, worktree billy.Filesystem) (*Repository, error) {
}
if worktree == nil {
- r.setIsBare(true)
+ _ = r.setIsBare(true)
return r, nil
}
@@ -408,7 +408,7 @@ func PlainCloneContext(ctx context.Context, path string, isBare bool, o *CloneOp
err = r.clone(ctx, o)
if err != nil && err != ErrRepositoryAlreadyExists {
if cleanup {
- cleanUpDir(path, cleanupParent)
+ _ = cleanUpDir(path, cleanupParent)
}
}