Browse Source

refactor: Optimize code by using built-in constants in the standard library (#2989)

Signed-off-by: coderwander <770732124@qq.com>
pull/2992/head
coderwander 7 months ago committed by GitHub
parent
commit
0202220881
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      collector/os_release.go

2
collector/os_release.go

@ -180,7 +180,7 @@ func (c *osReleaseCollector) UpdateStruct(path string) error {
}
if c.os.SupportEnd != "" {
c.supportEnd, err = time.Parse("2006-01-02", c.os.SupportEnd)
c.supportEnd, err = time.Parse(time.DateOnly, c.os.SupportEnd)
if err != nil {
return err

Loading…
Cancel
Save