Skip to content

Commit

Permalink
RHINENG-2610: don't panic when latestRepoChange is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Nov 16, 2023
1 parent f5ab0ec commit 804c15c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/vmaas_sync/repo_based.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func getUpdatedRepos(syncStart time.Time, modifiedSince *string) ([]string, []st
break
}

if repos.LatestRepoChange == nil {
break
}
latestRepoChange = repos.LatestRepoChange.Time()

utils.LogInfo("page", page, "pages", repos.Pages, "count", len(repos.RepositoryList),
Expand Down

0 comments on commit 804c15c

Please sign in to comment.