summaryrefslogtreecommitdiff
path: root/internal/processing/report/create.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/report/create.go')
-rw-r--r--internal/processing/report/create.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/processing/report/create.go b/internal/processing/report/create.go
index cc2f2405c..a7e83b656 100644
--- a/internal/processing/report/create.go
+++ b/internal/processing/report/create.go
@@ -64,11 +64,7 @@ func (p *processor) Create(ctx context.Context, account *gtsmodel.Account, form
}
}
- reportID, err := id.NewULID()
- if err != nil {
- return nil, gtserror.NewErrorInternalError(err)
- }
-
+ reportID := id.NewULID()
report := &gtsmodel.Report{
ID: reportID,
URI: uris.GenerateURIForReport(reportID),