Make golint happier.

This commit is contained in:
Dave Collins 2014-06-12 23:00:03 -05:00
parent 67d570e660
commit 7448f9555c
2 changed files with 7 additions and 7 deletions

View file

@ -943,9 +943,9 @@ type ConnConfig struct {
HttpPostMode bool HttpPostMode bool
} }
// newHttpClient returns a new http client that is configured according to the // newHTTPClient returns a new http client that is configured according to the
// proxy and TLS settings in the associated connection configuration. // proxy and TLS settings in the associated connection configuration.
func newHttpClient(config *ConnConfig) (*http.Client, error) { func newHTTPClient(config *ConnConfig) (*http.Client, error) {
// Set proxy function if there is a proxy configured. // Set proxy function if there is a proxy configured.
var proxyFunc func(*http.Request) (*url.URL, error) var proxyFunc func(*http.Request) (*url.URL, error)
if config.Proxy != "" { if config.Proxy != "" {
@ -1051,7 +1051,7 @@ func New(config *ConnConfig, ntfnHandlers *NotificationHandlers) (*Client, error
ntfnHandlers = nil ntfnHandlers = nil
var err error var err error
httpClient, err = newHttpClient(config) httpClient, err = newHTTPClient(config)
if err != nil { if err != nil {
return nil, err return nil, err
} }

View file

@ -44,10 +44,10 @@ const (
// for outputs. // for outputs.
SigHashNoneAnyoneCanPay SigHashType = "NONE|ANYONECANPAY" SigHashNoneAnyoneCanPay SigHashType = "NONE|ANYONECANPAY"
// SigHashAllAnyoneCanPay indicates that signer does not care where the // SigHashSingleAnyoneCanPay indicates that signer does not care where
// other inputs to the transaction come from, so it allows other people // the other inputs to the transaction come from, so it allows other
// to add inputs. In addition, it uses the SigHashSingle signing method // people to add inputs. In addition, it uses the SigHashSingle signing
// for outputs. // method for outputs.
SigHashSingleAnyoneCanPay SigHashType = "SINGLE|ANYONECANPAY" SigHashSingleAnyoneCanPay SigHashType = "SINGLE|ANYONECANPAY"
) )