mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 14:30:10 +08:00
🎨 改进代码样式
This commit is contained in:
parent
82768fff59
commit
901e680fa4
@ -97,7 +97,7 @@ func init() { // 插件主体
|
|||||||
}
|
}
|
||||||
|
|
||||||
// notnull 如果传入文本为空,则返回默认值
|
// notnull 如果传入文本为空,则返回默认值
|
||||||
//nolint: unparam
|
|
||||||
func notnull(text, defstr string) string {
|
func notnull(text, defstr string) string {
|
||||||
if text == "" {
|
if text == "" {
|
||||||
return defstr
|
return defstr
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user