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:
Jo
2023-01-03 21:43:56 +00:00
committed by GitHub
parent 8948278568
commit b8debd1ae7
22 changed files with 138 additions and 122 deletions

View File

@@ -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