chore(go): audit cmd/elydora root
Drop the tautological secret file identity check and the test-only guard path wrapper. Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
This commit is contained in:
1 parent
27b720ca69
commit
5e08ab20f5
3 files changed
+4
-30
No files matched your search
@@ -119,9 +119,6 @@ func readSecretFileWithOpen(
|
||||
if err := validateSecretFile(before, path, label); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if !os.SameFile(before, before) {
|
||||
return "", fmt.Errorf("establish %s file identity at %s", label, path)
|
||||
}
|
||||
|
||||
file, err := openFile(path)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user