diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 16:41:03 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 16:41:03 +0200 |
commit | d872dd9af2091b0f2d2cf1e80827a3a8e18be64f (patch) | |
tree | 77952181a0126277a02925b1bb76093b06102341 /repository.go | |
parent | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff) | |
download | go-git-d872dd9af2091b0f2d2cf1e80827a3a8e18be64f.tar.gz |
Skip error check explicitly
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 4 |
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) } } |