This commit is contained in:
源文雨 2022-03-27 00:24:56 +08:00
commit e3a50cc014
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ func init() { // 插件主体
}
// notnull 如果传入文本为空,则返回默认值
//nolint: unparam
func notnull(text, defstr string) string {
if text == "" {
return defstr