mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
bump gocui to ensure no crash on startup
This commit is contained in:
parent
66bd86b9b7
commit
bd9579983e
8 changed files with 60 additions and 24 deletions
3
vendor/github.com/go-errors/errors/README.md
generated
vendored
3
vendor/github.com/go-errors/errors/README.md
generated
vendored
|
@ -64,3 +64,6 @@ packages by Facebook and Dropbox, it was moved to one canonical location so
|
|||
everyone can benefit.
|
||||
|
||||
This package is licensed under the MIT license, see LICENSE.MIT for details.
|
||||
|
||||
## Changelog
|
||||
* v1.1.0 updated to use go1.13's standard-library errors.Is method instead of == in errors.Is
|
19
vendor/github.com/go-errors/errors/error.go
generated
vendored
19
vendor/github.com/go-errors/errors/error.go
generated
vendored
|
@ -139,25 +139,6 @@ func WrapPrefix(e interface{}, prefix string, skip int) *Error {
|
|||
|
||||
}
|
||||
|
||||
// Is detects whether the error is equal to a given error. Errors
|
||||
// are considered equal by this function if they are the same object,
|
||||
// or if they both contain the same error inside an errors.Error.
|
||||
func Is(e error, original error) bool {
|
||||
|
||||
if e == original {
|
||||
return true
|
||||
}
|
||||
|
||||
if e, ok := e.(*Error); ok {
|
||||
return Is(e.Err, original)
|
||||
}
|
||||
|
||||
if original, ok := original.(*Error); ok {
|
||||
return Is(e, original.Err)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// Errorf creates a new error with the given message. You can use it
|
||||
// as a drop-in replacement for fmt.Errorf() to provide descriptive
|
||||
|
|
26
vendor/github.com/go-errors/errors/error_1_13.go
generated
vendored
Normal file
26
vendor/github.com/go-errors/errors/error_1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// +build go1.13
|
||||
|
||||
package errors
|
||||
|
||||
import (
|
||||
baseErrors "errors"
|
||||
)
|
||||
|
||||
// Is detects whether the error is equal to a given error. Errors
|
||||
// are considered equal by this function if they are matched by errors.Is
|
||||
// or if their contained errors are matched through errors.Is
|
||||
func Is(e error, original error) bool {
|
||||
if baseErrors.Is(e, original) {
|
||||
return true
|
||||
}
|
||||
|
||||
if e, ok := e.(*Error); ok {
|
||||
return Is(e.Err, original)
|
||||
}
|
||||
|
||||
if original, ok := original.(*Error); ok {
|
||||
return Is(e, original.Err)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
22
vendor/github.com/go-errors/errors/error_backward.go
generated
vendored
Normal file
22
vendor/github.com/go-errors/errors/error_backward.go
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// +build !go1.13
|
||||
|
||||
package errors
|
||||
|
||||
// Is detects whether the error is equal to a given error. Errors
|
||||
// are considered equal by this function if they are the same object,
|
||||
// or if they both contain the same error inside an errors.Error.
|
||||
func Is(e error, original error) bool {
|
||||
if e == original {
|
||||
return true
|
||||
}
|
||||
|
||||
if e, ok := e.(*Error); ok {
|
||||
return Is(e.Err, original)
|
||||
}
|
||||
|
||||
if original, ok := original.(*Error); ok {
|
||||
return Is(e, original.Err)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue