Skip to content

Commit

Permalink
removal of redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Fearne committed Aug 12, 2022
1 parent 7d13f7b commit b38a393
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/http/services/cback/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type backUpResponse struct {
ID int `json:"id"`
Name string `json:"name"`
Source string `json:"source"`
Substring string //Used in function
Substring string
}

type snapshotResponse struct {
Expand Down Expand Up @@ -78,11 +78,6 @@ func (s *svc) matchBackups(userName, pathInput string) (*backUpResponse, error)
responseObject := []backUpResponse{}
json.NewDecoder(responseData).Decode(&responseObject)

/*if len(responseObject) == 0 {
err = errors.New("no match found")
return nil, err
}*/

for i := range responseObject {
if responseObject[i].Detail != "" {
err = errors.New(responseObject[i].Detail)
Expand Down

0 comments on commit b38a393

Please sign in to comment.