Fix lint errors caught by go test
Test: m checkbuild Change-Id: I5b8522aa9da22fc595e4f26c23e7836de59bdfa2
This commit is contained in:
parent
29788aad61
commit
fe5a3b7fac
|
@ -29,7 +29,7 @@ import (
|
|||
|
||||
func main() {
|
||||
flag.Usage = func() {
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s <depfile.d>")
|
||||
fmt.Fprintf(os.Stderr, "Usage: %s <depfile.d>", os.Args[0])
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
output := flag.String("o", "", "Optional output file (defaults to rewriting source if necessary)")
|
||||
|
|
|
@ -183,7 +183,7 @@ func TestMissingPath(t *testing.T) {
|
|||
interposer := setup(t)
|
||||
err := os.Remove(interposer + "_origpath")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to remove:", err)
|
||||
t.Fatal("Failed to remove:", err)
|
||||
}
|
||||
|
||||
exitCode, err := Main(ioutil.Discard, ioutil.Discard, interposer, []string{"true"}, mainOpts{})
|
||||
|
|
|
@ -524,7 +524,7 @@ Usage: %s [--rewrite <regex>=<replace>] [-exclude <module>] [--extra-deps <modul
|
|||
if pom.IsAar() {
|
||||
err := pom.ExtractMinSdkVersion()
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "Error reading manifest for %s: %s", pom.ArtifactFile, err)
|
||||
fmt.Fprintf(os.Stderr, "Error reading manifest for %s: %s", pom.ArtifactFile, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue