+3
-5
lines changedFilter options
+3
-5
lines changed Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ import (
32
32
"os/exec"
33
33
"path/filepath"
34
34
"runtime"
35
+
"slices"
35
36
"strings"
36
37
"sync"
37
38
"time"
@@ -197,11 +198,8 @@ func run() (retVal error) {
197
198
// config file since we are using the remaining args from the command
198
199
// line that are usually as a list of databases to dump
199
200
globs := []string{}
200
-
for _, v := range cliOptList {
201
-
if v == "include-dbs" {
202
-
globs = opts.Dbnames
203
-
break
204
-
}
201
+
if slices.Contains(cliOptList, "include-dbs") {
202
+
globs = opts.Dbnames
205
203
}
206
204
207
205
// Listing remote files take priority over the other options that won't dump databases
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