A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/7573c483c57963f2062a335d248621581d210ca5 below:

Replace loop for search on slice by slices.Contains · orgrim/pg_back@7573c48 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-5

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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