make fmt.

This commit is contained in:
Todd Knight committed 2021-08-04 13:56:54 -07:00
1 parent c75c97a872
commit 8496093874
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ func StartMemProfiler(ctx context.Context) {
const op = "base.StartMemProfiler"
profileDir := filepath.Join(os.TempDir(), "boundaryprof")
if err := os.MkdirAll(profileDir, 0o700); err != nil {
event.WriteError(ctx, op, err,"could not create profile directory")
event.WriteError(ctx, op, err, "could not create profile directory")
return
}
@@ -62,7 +62,6 @@ func newHclogFormatterFilter(jsonFormat bool, opt ...Option) (*hclogFormatterFil
n.predicate = newPredicate(n.allow, n.deny)
return &n, nil
}
// Reopen is a no op
@@ -145,7 +145,8 @@ func TestHclogFormatter_Process(t *testing.T) {
"\"Error\":\"invalid parameter\"",
"\"Id\":\"1\"",
"\"Version\":\"v0.1\"",
"\"Op\":\"text\""},
"\"Op\":\"text\"",
},
},
{
name: "err-text-with-optional",
@@ -243,7 +244,6 @@ func TestHclogFormatter_Process(t *testing.T) {
for _, txt := range tt.want {
assert.Contains(string(b), txt)
}
})
}
}