Skip to content

Commit 313972d

Browse files
committed
Use go-srrdb-API v1.2.3
1 parent 186cf52 commit 313972d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/hashworks/srrdb-Terminal-Client
22

33
go 1.18
44

5-
require github.com/hashworks/go-srrdb-API v1.1.0
5+
require github.com/hashworks/go-srrdb-API v1.2.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/hashworks/go-srrdb-API v1.1.0 h1:5AgAIGh8qggZMoL+VGYS/mo/Q3HFwRONqv1PZLMlxt8=
2-
github.com/hashworks/go-srrdb-API v1.1.0/go.mod h1:FwwURM0w9ZjP+oPAyntJN4Kx4+2Eqll3Wzcx2Lom904=
1+
github.com/hashworks/go-srrdb-API v1.2.3 h1:vYESLeg/m+lAJYv79cmyj1fGpbYWkQz01XyhDCpzoXw=
2+
github.com/hashworks/go-srrdb-API v1.2.3/go.mod h1:DJC8EgXo6Ac2PIIHeC94xpUPVttLwzagAZTa0AjQ4eM=

srrdb.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
"github.com/hashworks/go-srrdb-API/srrdb"
76
"io/ioutil"
87
"net/http/cookiejar"
98
"os"
109
"path/filepath"
1110
"sort"
1211
"strings"
12+
13+
"github.com/hashworks/go-srrdb-API/srrdb"
1314
)
1415

1516
var (
@@ -125,7 +126,7 @@ func search(query string) {
125126
fmt.Println("Failed to search for query: " + err.Error())
126127
os.Exit(1)
127128
}
128-
if response.ResultCount == "0" {
129+
if response.ResultCount == 0 {
129130
fmt.Println("Nothing found!")
130131
os.Exit(1)
131132
}

0 commit comments

Comments
 (0)