Resolved linting issue

This commit is contained in:
MohitKatare-protean
2025-05-28 11:28:40 +05:30
parent 1db8aa48ac
commit 3fc1ef53f0

View File

@@ -798,7 +798,9 @@ func setupMockVaultServer(t *testing.T, kvVersion, keyID string, success bool) *
"warnings": null, "warnings": null,
"auth": null "auth": null
}`, keyID) }`, keyID)
w.Write([]byte(resp)) if _, err := w.Write([]byte(resp)); err != nil {
t.Fatalf("failed to write response: %v", err)
}
} else { } else {
resp := fmt.Sprintf(`{ resp := fmt.Sprintf(`{
"request_id": "req-1234", "request_id": "req-1234",
@@ -815,7 +817,9 @@ func setupMockVaultServer(t *testing.T, kvVersion, keyID string, success bool) *
"warnings": null, "warnings": null,
"auth": null "auth": null
}`, keyID) }`, keyID)
w.Write([]byte(resp)) if _, err := w.Write([]byte(resp)); err != nil {
t.Fatalf("failed to write response: %v", err)
}
} }
}) })