diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:19:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:58:24 +0900 |
| commit | f869ff95a12756de97827b4afd93763f9661f144 (patch) | |
| tree | 6f5445ae623f44ceb99c8f7ddb5bb4cd1fb04aa0 /cmd/sharefs/fuse.go | |
| parent | 725f2e0ef3eaba1ad46b597604a684125ab93911 (diff) | |
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs/fuse.go')
| -rw-r--r-- | cmd/sharefs/fuse.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
