mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:36:14 -06:00
lint
This commit is contained in:
parent
a3743f8234
commit
02221fc95b
1 changed files with 1 additions and 4 deletions
|
|
@ -103,10 +103,7 @@ func (m *Module) DomainPermissionSubscriptionsPreviewGETHandler(c *gin.Context)
|
||||||
|
|
||||||
case "":
|
case "":
|
||||||
// Not set.
|
// Not set.
|
||||||
text := fmt.Sprintf(
|
const text = "permission_type must be set, valid values are block or allow"
|
||||||
"permission_type must be set, valid values are block or allow",
|
|
||||||
permType,
|
|
||||||
)
|
|
||||||
errWithCode := gtserror.NewErrorBadRequest(errors.New(text), text)
|
errWithCode := gtserror.NewErrorBadRequest(errors.New(text), text)
|
||||||
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
|
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue