diff options
Diffstat (limited to 'internal/gtserror/error.go')
| -rw-r--r-- | internal/gtserror/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gtserror/error.go b/internal/gtserror/error.go index bd83a8dc8..8eb3f1d65 100644 --- a/internal/gtserror/error.go +++ b/internal/gtserror/error.go @@ -71,11 +71,11 @@ func SetUnretrievable(err error) error { return errors.WithValue(err, unrtrvableKey, struct{}{}) } -// NotPermitted indicates that some call failed due to failed permission +// IsNotPermitted indicates that some call failed due to failed permission // or acceptibility checks. For example an attempt to dereference remote // status in which the status author does not have permission to reply // to the status it is intended to be replying to. -func NotPermitted(err error) bool { +func IsNotPermitted(err error) bool { _, ok := errors.Value(err, notPermittedKey).(struct{}) return ok } |
