refactor client

This commit is contained in:
Christoph Polcin
2018-05-24 01:14:19 +02:00
parent 3993494db0
commit 1e4b7a5554
2 changed files with 20 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ type Client struct {
}
// NewClient creates a new instance of client
func NewClient(uri string, user string, pw string) *Client {
func NewClient(uri, user, pw string) *Client {
c := &Client{uri, make(http.Header), &http.Client{}}
if len(user) > 0 && len(pw) > 0 {