aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 16:41:03 +0200
committerOleg Kovalov <iamolegkovalov@gmail.com>2020-07-06 16:41:03 +0200
commitd872dd9af2091b0f2d2cf1e80827a3a8e18be64f (patch)
tree77952181a0126277a02925b1bb76093b06102341 /repository.go
parenta9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff)
downloadgo-git-d872dd9af2091b0f2d2cf1e80827a3a8e18be64f.tar.gz
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)
}
}