revert to original conditional format
This commit is contained in:
parent
5a2584188f
commit
cb8eac2b75
|
|
@ -185,8 +185,7 @@ func main() {
|
|||
failCount := 0
|
||||
for {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*time.Duration(*flSyncTimeout))
|
||||
err := syncRepo(ctx, *flRepo, *flBranch, *flRev, *flDepth, *flRoot, *flDest)
|
||||
if err != nil {
|
||||
if err := syncRepo(ctx, *flRepo, *flBranch, *flRev, *flDepth, *flRoot, *flDest); err != nil {
|
||||
if initialSync || failCount >= *flMaxSyncFailures {
|
||||
log.Errorf("error syncing repo: %v", err)
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue