summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'danmaku/dmmsg/util.go')
-rw-r--r--danmaku/dmmsg/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/danmaku/dmmsg/util.go b/danmaku/dmmsg/util.go
index 9d41ab9..d38814b 100644
--- a/danmaku/dmmsg/util.go
+++ b/danmaku/dmmsg/util.go
@@ -9,7 +9,7 @@ func castValue[T any](obj interface{}) (thing T, err error) {
casted, ok := (obj).(T)
if !ok {
err = fmt.Errorf("%s: required value is not of type \"%v\": %v",
- kInvalidDanmakuJson, reflect.TypeOf(thing).String(), obj)
+ InvalidDanmakuJson, reflect.TypeOf(thing).String(), obj)
return
}
thing = casted