diff options
author | Joe Chen <jc@unknwon.io> | 2023-02-02 21:25:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 21:25:25 +0800 |
commit | c53a1998c589a544b25d53f6e6fdf0f24a4df25b (patch) | |
tree | 1c3c9d693ba551eecfbc535be942e40b5acf9cf7 /internal/db/attachment.go | |
parent | 614382fec0ba05149785539ab93560d4d42c194d (diff) |
all: replace `interface{}` with `any` (#7330)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/db/attachment.go')
-rw-r--r-- | internal/db/attachment.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/attachment.go b/internal/db/attachment.go index 75d92746..53372468 100644 --- a/internal/db/attachment.go +++ b/internal/db/attachment.go @@ -87,7 +87,7 @@ func NewAttachment(name string, buf []byte, file multipart.File) (_ *Attachment, var _ errutil.NotFound = (*ErrAttachmentNotExist)(nil) type ErrAttachmentNotExist struct { - args map[string]interface{} + args map[string]any } func IsErrAttachmentNotExist(err error) bool { @@ -109,7 +109,7 @@ func getAttachmentByUUID(e Engine, uuid string) (*Attachment, error) { if err != nil { return nil, err } else if !has { - return nil, ErrAttachmentNotExist{args: map[string]interface{}{"uuid": uuid}} + return nil, ErrAttachmentNotExist{args: map[string]any{"uuid": uuid}} } return attach, nil } |