Skip to content

Commit d85cbab

Browse files
committed
Revert incorrect fix
1 parent ad9af6f commit d85cbab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/importer/importer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func (i *Incremental) importAllNew(ctx context.Context) error {
158158
}
159159
addToImport := false
160160
if oldModTime, ok := manifest[path.Join(i.srtDir, v.Name())]; ok {
161-
if oldModTime.After(inf.ModTime()) {
162-
i.logger.Info("file older than existing",
161+
if inf.ModTime().After(oldModTime) {
162+
i.logger.Info("newer file version was found, added to import",
163163
slog.String("path", path.Join(i.srtDir, v.Name())),
164164
slog.Time("old", oldModTime),
165165
slog.Time("new", inf.ModTime()),

0 commit comments

Comments
 (0)