Remove never call to panic

This commit is contained in:
Tom Wiesing 2023-11-03 13:05:36 +01:00
parent eaa98901b5
commit 297c6c875d
No known key found for this signature in database

View file

@ -88,8 +88,5 @@ func (sockets *Sockets) Actions() ActionMap {
"purge": sockets.Instance(scopes.ScopeUserAdmin, "", 0, func(ctx context.Context, sockets *Sockets, instance *wisski.WissKI, in io.Reader, out io.Writer, params ...string) error {
return sockets.dependencies.Purger.Purge(ctx, out, instance.Slug)
}),
"never": sockets.Generic(scopes.ScopeNever, "", 0, func(ctx context.Context, sockets *Sockets, in io.Reader, out io.Writer, params ...string) error {
panic("never called")
}),
}
}