mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-03 12:48:22 +08:00
精简代码
This commit is contained in:
parent
82ed3c264c
commit
4c1c004f09
@ -10,8 +10,8 @@ func (c Carbon) Season() string {
|
|||||||
if c.IsZero() {
|
if c.IsZero() {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if len(c.Lang.resources) == 0 && c.Lang.SetLocale(defaultLocale) != nil {
|
if len(c.Lang.resources) == 0 {
|
||||||
return ""
|
c.Lang.SetLocale(defaultLocale)
|
||||||
}
|
}
|
||||||
index := -1
|
index := -1
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user