mirror of
https://github.com/mgechev/revive.git
synced 2025-02-07 13:31:42 +02:00
d2778f36f1
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
13 lines
482 B
Go
13 lines
482 B
Go
package pkg
|
|
|
|
import "fmt"
|
|
|
|
func errorsNew() (int, error) {
|
|
fmt.Errorf("repo cannot be nil") // MATCH /replace fmt.Errorf by errors.New/
|
|
errs := append(errs, fmt.Errorf("commit cannot be nil")) // MATCH /replace fmt.Errorf by errors.New/
|
|
fmt.Errorf("unable to load base repo: %w", err)
|
|
fmt.Errorf("Failed to get full commit id for origin/%s: %w", pr.BaseBranch, err)
|
|
|
|
return 0, fmt.Errorf(msg + "something") // MATCH /replace fmt.Errorf by errors.New/
|
|
}
|