From f869ff95a12756de97827b4afd93763f9661f144 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 8 Jun 2026 14:19:11 +0900 Subject: all: apply modernisers Signed-off-by: Ophestra --- cmd/sharefs/fuse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/sharefs/fuse.go') diff --git a/cmd/sharefs/fuse.go b/cmd/sharefs/fuse.go index c9855eb7..5dfbf385 100644 --- a/cmd/sharefs/fuse.go +++ b/cmd/sharefs/fuse.go @@ -508,8 +508,8 @@ func _main(s ...string) (exitCode int) { if !z.AllowOrphan { if err := z.Wait(); err != nil { - var exitError *exec.ExitError - if !errors.As(err, &exitError) || exitError == nil { + exitError, ok := errors.AsType[*exec.ExitError](err) + if !ok || exitError == nil { log.Println(err) return 5 } -- cgit v1.3.1