fix calendar cache check logic
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M internal/calendar/calendar.go → internal/calendar/calendar.go
@@ -74,7 +74,7 @@ if err != nil && !errors.Is(err, fs.ErrNotExist) { return false, errors.WithMessage(err, "could not stat calendar file") } - return stat == nil || time.Since(stat.ModTime()) > Refresh || stat.Size() == 0, nil + return stat != nil && time.Since(stat.ModTime()) < Refresh && stat.Size() > 0, nil } func (c *Calendar) FetchIfNeeded(ctx context.Context) error {