commit | 0bad5677b329069d78f578cacd4f3ae0a09ec5bc | [log] [tgz] |
---|---|---|
author | James Ring <sjr@jdns.org> | Mon Jan 05 09:51:36 2015 -0800 |
committer | James Ring <sjr@jdns.org> | Mon Jan 05 09:51:36 2015 -0800 |
tree | 99c45069b56ef226abc5c8ce4b79c52e05df62cd | |
parent | df3ffa2d0544c289744c8fba59310e276bcb8b66 [diff] |
lib/testutil/integration: fix error checking style Change-Id: Id7e2825d91b9c04c09dbf5e01b7f7fc6cb469b79
diff --git a/lib/testutil/integration/util.go b/lib/testutil/integration/util.go index 81e148a..f82b759 100644 --- a/lib/testutil/integration/util.go +++ b/lib/testutil/integration/util.go
@@ -222,8 +222,7 @@ } func writeStringOrDie(t *testing.T, f *os.File, s string) { - _, err := f.WriteString(s) - if err != nil { + if _, err := f.WriteString(s); err != nil { t.Fatalf("Write() failed: %v", err) } }