Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine committed Apr 12, 2021
1 parent d5d09f2 commit 91513d7
Showing 3 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions indexer/index_client.go → indexer/client.go
Original file line number Diff line number Diff line change
@@ -20,13 +20,9 @@ func NewClient(host, endpoint string, requestTimeout time.Duration) *Client {
}

func (c *Client) GetContainerRange(args *GetContainerRangeArgs) ([]FormattedContainer, error) {
var response *GetContainerRangeResponse
if err := c.SendRequest("getContainerRange", args, &response); err != nil {
return nil, err
} else if response == nil {
return nil, nil
}
return response.Containers, nil
var response GetContainerRangeResponse
err := c.SendRequest("getContainerRange", args, &response)
return response.Containers, err
}

func (c *Client) GetContainerByIndex(args *GetContainer) (FormattedContainer, error) {
File renamed without changes.
1 change: 0 additions & 1 deletion indexer/index.go
Original file line number Diff line number Diff line change
@@ -205,7 +205,6 @@ func (i *index) getContainerByIndexBytes(indexBytes []byte) (Container, error) {
return Container{}, fmt.Errorf("couldn't unmarshal container: %w", err)
}
return container, nil

}

// GetContainerRange returns the IDs of containers at indices

0 comments on commit 91513d7

Please sign in to comment.