File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/hashworks/srrdb-Terminal-Client
2
2
3
3
go 1.18
4
4
5
- require github.com/hashworks/go-srrdb-API v1.1.0
5
+ require github.com/hashworks/go-srrdb-API v1.2.3
Original file line number Diff line number Diff line change 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 =
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package main
3
3
import (
4
4
"flag"
5
5
"fmt"
6
- "github.com/hashworks/go-srrdb-API/srrdb"
7
6
"io/ioutil"
8
7
"net/http/cookiejar"
9
8
"os"
10
9
"path/filepath"
11
10
"sort"
12
11
"strings"
12
+
13
+ "github.com/hashworks/go-srrdb-API/srrdb"
13
14
)
14
15
15
16
var (
@@ -125,7 +126,7 @@ func search(query string) {
125
126
fmt .Println ("Failed to search for query: " + err .Error ())
126
127
os .Exit (1 )
127
128
}
128
- if response .ResultCount == "0" {
129
+ if response .ResultCount == 0 {
129
130
fmt .Println ("Nothing found!" )
130
131
os .Exit (1 )
131
132
}
You can’t perform that action at this time.
0 commit comments