mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
chore(yay): fix small linting issues (#1885)
* replace context.TODO() in tests context.Background() * remove mock TODOs * prettier * apply missing linting
This commit is contained in:
4
main.go
4
main.go
@@ -2,6 +2,7 @@ package main // import "github.com/Jguer/yay"
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime/debug"
|
||||
@@ -146,7 +147,8 @@ func main() {
|
||||
text.Errorln(str)
|
||||
}
|
||||
|
||||
if exitError, ok := err.(*exec.ExitError); ok {
|
||||
exitError := &exec.ExitError{}
|
||||
if errors.As(err, &exitError) {
|
||||
// mirror pacman exit code when applicable
|
||||
ret = exitError.ExitCode()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user