Skip to content

Commit

Permalink
libgit: unwrap the error properly when checking for a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
strib committed Feb 13, 2019
1 parent 1045104 commit 3202816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/kbfs/libgit/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func CleanOldDeletedReposTimeLimited(
case context.DeadlineExceeded, context.Canceled:
return nil
default:
if _, ok := err.(libkbfs.OfflineUnsyncedError); ok {
if _, ok := errors.Cause(err).(libkbfs.OfflineUnsyncedError); ok {
return nil
}
return err
Expand Down

0 comments on commit 3202816

Please sign in to comment.