fix: remove unnecessary string conversions (unconvert)
Remove redundant string() conversions on output variables that are already strings in test assertions and logging. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0d140b4636
commit
9231409c5c
@ -997,12 +997,12 @@ func test12SecretNameFormats(t *testing.T, tempDir, testMnemonic string, runSecr
|
||||
if shouldFail {
|
||||
assert.Error(t, err, "add '%s' should fail", invalidName)
|
||||
if err != nil {
|
||||
assert.Contains(t, string(output), "invalid secret name", "should indicate invalid name for '%s'", invalidName)
|
||||
assert.Contains(t, output, "invalid secret name", "should indicate invalid name for '%s'", invalidName)
|
||||
}
|
||||
} else {
|
||||
// For the slash cases and .hidden, they might succeed
|
||||
// Just log what happened
|
||||
t.Logf("add '%s' result: err=%v, output=%s", invalidName, err, string(output))
|
||||
t.Logf("add '%s' result: err=%v, output=%s", invalidName, err, output)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user