From db7051a36814a5c9e02e22c2e8d1df42c5f4b8f0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 12 Oct 2025 03:58:53 +0900 Subject: internal/app/spcontainer: check fs init behaviour This covers every statement. Some of them are unreachable unless the kernel returns garbage. Signed-off-by: Ophestra --- internal/app/spcontainer.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'internal/app/spcontainer.go') diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go index 247b7983..7475a1f1 100644 --- a/internal/app/spcontainer.go +++ b/internal/app/spcontainer.go @@ -252,14 +252,7 @@ func (s *spFilesystemOp) toSystem(state *outcomeStateSys) error { for i, ok := range hidePathMatch { if ok { if a, err := check.NewAbs(hidePaths[i]); err != nil { - var absoluteError *check.AbsoluteError - if !errors.As(err, &absoluteError) { - return newWithMessageError(absoluteError.Error(), absoluteError) - } - if absoluteError == nil { - return newWithMessage("impossible path checking state reached") - } - return newWithMessage("invalid path hiding candidate " + strconv.Quote(absoluteError.Pathname)) + return newWithMessage("invalid path hiding candidate " + strconv.Quote(hidePaths[i])) } else { s.HidePaths = append(s.HidePaths, a) } -- cgit v1.3.1