mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-18 16:31:06 +00:00
lint
This commit is contained in:
parent
a3743f8234
commit
02221fc95b
|
@ -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…
Reference in a new issue