This commit is contained in:
gouguoyin 2021-11-17 13:40:44 +08:00
parent aae4528de8
commit f34e6e6cd4

View File

@ -36,7 +36,6 @@ func (c Carbon) Parse(value string, timezone ...string) Carbon {
c = c.ParseByLayout(value, layout)
if c.Error != nil {
c.Error = invalidValueError(value)
return c
}
return c
}
@ -62,7 +61,6 @@ func (c Carbon) ParseByFormat(value string, format string, timezone ...string) C
c = c.ParseByLayout(value, format2layout(format))
if c.Error != nil {
c.Error = invalidFormatError(value, format)
return c
}
return c
}