+3
-5
lines changedFilter options
+3
-5
lines changed Original file line number Diff line number Diff line change
@@ -434,9 +434,7 @@ func run() (retVal error) {
434
434
435
435
// Closing the input channel makes the postprocessing go routine stop,
436
436
// so it must be done before blocking on the WaitGroup in
437
-
// stopPostProcess(). The channel would be closed in a defer that check
438
-
// if retVal is an error, from this point we MUST only use retVal and a
439
-
// return without value when return from an error
437
+
// stopPostProcess()
440
438
close(producedFiles)
441
439
l.Infoln("waiting for postprocessing to complete")
442
440
if err := stopPostProcess(&wg, postProcRet); err != nil {
@@ -483,7 +481,7 @@ func run() (retVal error) {
483
481
retVal = err
484
482
}
485
483
486
-
if opts.PurgeRemote {
484
+
if opts.PurgeRemote && repo != nil {
487
485
if err := purgeRemoteDumps(repo, opts.Directory, dbname, o.PurgeKeep, limit); err != nil {
488
486
retVal = err
489
487
}
@@ -496,7 +494,7 @@ func run() (retVal error) {
496
494
retVal = err
497
495
}
498
496
499
-
if opts.PurgeRemote {
497
+
if opts.PurgeRemote && repo != nil {
500
498
if err := purgeRemoteDumps(repo, opts.Directory, other, defDbOpts.PurgeKeep, limit); err != nil {
501
499
retVal = err
502
500
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4