Fixed tautological error

err can't be nil here, it's been checked for above.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 12:48:28 +02:00
parent 09296c0214
commit 1ecd7d30c4
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E

View File

@ -176,7 +176,7 @@ func isNewView(errs ...error) bool {
if err == nil {
return false
}
if err != nil && err != gocui.ErrUnknownView {
if err != gocui.ErrUnknownView {
return false
}
}