shim: get rid of insane launch condition

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-10-13 12:09:38 +09:00
parent e4536b87ad
commit b470941911
5 changed files with 16 additions and 15 deletions

View File

@@ -80,11 +80,3 @@ func ServeConfig(socket string, payload *Payload, wl string, done chan struct{})
return ws, nil
}
}
// Try runs shim and stops execution if FORTIFY_SHIM is set.
func Try() {
if s, ok := os.LookupEnv(EnvShim); ok {
shim(s)
}
panic("unreachable")
}