exec: remove unused IsPermissionError

No longer called anywhere after the sandbox fallback was removed from anvillm-mcp.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-03 21:11:22 +02:00
parent 5aea341255
commit f11d1a4d09
1 changed files with 0 additions and 9 deletions

View File

@ -230,15 +230,6 @@ func (e *Executor) ValidateCode(code string) error {
return nil return nil
} }
// IsPermissionError returns true if err indicates a permission or missing-file error.
func IsPermissionError(err error) bool {
if err == nil {
return false
}
msg := strings.ToLower(err.Error())
return strings.Contains(msg, "permission denied") ||
strings.Contains(msg, "no such file or directory")
}
func loadLayeredConfig(name string) (*sandbox.Config, error) { func loadLayeredConfig(name string) (*sandbox.Config, error) {
baseCfg, err := sandbox.Load() baseCfg, err := sandbox.Load()