mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
ci(chore): Fix stylings
This commit is contained in:
parent
2709c5d448
commit
b833193926
@ -30,7 +30,7 @@ func EnsureBool(p interface{}, defaultVal bool) bool {
|
|||||||
if !j.Exists() {
|
if !j.Exists() {
|
||||||
return defaultVal
|
return defaultVal
|
||||||
}
|
}
|
||||||
switch j.Type { // nolint
|
switch j.Type {
|
||||||
case gjson.True:
|
case gjson.True:
|
||||||
return true
|
return true
|
||||||
case gjson.False:
|
case gjson.False:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user