Remove never call to panic
This commit is contained in:
parent
eaa98901b5
commit
297c6c875d
1 changed files with 0 additions and 3 deletions
|
|
@ -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 {
|
"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)
|
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")
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue