mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-18 08:21:05 +00:00
lint
This commit is contained in:
parent
a3743f8234
commit
02221fc95b
|
@ -103,10 +103,7 @@ func (m *Module) DomainPermissionSubscriptionsPreviewGETHandler(c *gin.Context)
|
|||
|
||||
case "":
|
||||
// Not set.
|
||||
text := fmt.Sprintf(
|
||||
"permission_type must be set, valid values are block or allow",
|
||||
permType,
|
||||
)
|
||||
const text = "permission_type must be set, valid values are block or allow"
|
||||
errWithCode := gtserror.NewErrorBadRequest(errors.New(text), text)
|
||||
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue