Skip to content

Commit

Permalink
Use go-srrdb-API v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed May 13, 2022
1 parent 186cf52 commit 313972d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -2,4 +2,4 @@ module github.com/hashworks/srrdb-Terminal-Client

go 1.18

require github.com/hashworks/go-srrdb-API v1.1.0
require github.com/hashworks/go-srrdb-API v1.2.3
4 changes: 2 additions & 2 deletions go.sum
@@ -1,2 +1,2 @@
github.com/hashworks/go-srrdb-API v1.1.0 h1:5AgAIGh8qggZMoL+VGYS/mo/Q3HFwRONqv1PZLMlxt8=
github.com/hashworks/go-srrdb-API v1.1.0/go.mod h1:FwwURM0w9ZjP+oPAyntJN4Kx4+2Eqll3Wzcx2Lom904=
github.com/hashworks/go-srrdb-API v1.2.3 h1:vYESLeg/m+lAJYv79cmyj1fGpbYWkQz01XyhDCpzoXw=
github.com/hashworks/go-srrdb-API v1.2.3/go.mod h1:DJC8EgXo6Ac2PIIHeC94xpUPVttLwzagAZTa0AjQ4eM=
5 changes: 3 additions & 2 deletions srrdb.go
Expand Up @@ -3,13 +3,14 @@ package main
import (
"flag"
"fmt"
"github.com/hashworks/go-srrdb-API/srrdb"
"io/ioutil"
"net/http/cookiejar"
"os"
"path/filepath"
"sort"
"strings"

"github.com/hashworks/go-srrdb-API/srrdb"
)

var (
Expand Down Expand Up @@ -125,7 +126,7 @@ func search(query string) {
fmt.Println("Failed to search for query: " + err.Error())
os.Exit(1)
}
if response.ResultCount == "0" {
if response.ResultCount == 0 {
fmt.Println("Nothing found!")
os.Exit(1)
}
Expand Down

0 comments on commit 313972d

Please sign in to comment.