Fix typos

This commit is contained in:
Michalis Kargakis 2014-07-08 15:40:53 +03:00
parent 656fa8699b
commit 406dd2fcb7

View file

@ -188,7 +188,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
switch ntfn.Method { switch ntfn.Method {
// OnBlockConnected // OnBlockConnected
case btcws.BlockConnectedNtfnMethod: case btcws.BlockConnectedNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnBlockConnected == nil { if c.ntfnHandlers.OnBlockConnected == nil {
return return
@ -205,7 +205,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnBlockDisconnected // OnBlockDisconnected
case btcws.BlockDisconnectedNtfnMethod: case btcws.BlockDisconnectedNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnBlockDisconnected == nil { if c.ntfnHandlers.OnBlockDisconnected == nil {
return return
@ -222,7 +222,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnRecvTx // OnRecvTx
case btcws.RecvTxNtfnMethod: case btcws.RecvTxNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnRecvTx == nil { if c.ntfnHandlers.OnRecvTx == nil {
return return
@ -239,7 +239,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnRedeemingTx // OnRedeemingTx
case btcws.RedeemingTxNtfnMethod: case btcws.RedeemingTxNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnRedeemingTx == nil { if c.ntfnHandlers.OnRedeemingTx == nil {
return return
@ -256,7 +256,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnRescanFinished // OnRescanFinished
case btcws.RescanFinishedNtfnMethod: case btcws.RescanFinishedNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnRescanFinished == nil { if c.ntfnHandlers.OnRescanFinished == nil {
return return
@ -273,7 +273,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnRescanProgress // OnRescanProgress
case btcws.RescanProgressNtfnMethod: case btcws.RescanProgressNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnRescanProgress == nil { if c.ntfnHandlers.OnRescanProgress == nil {
return return
@ -290,7 +290,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnTxAccepted // OnTxAccepted
case btcws.TxAcceptedNtfnMethod: case btcws.TxAcceptedNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnTxAccepted == nil { if c.ntfnHandlers.OnTxAccepted == nil {
return return
@ -307,7 +307,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnTxAcceptedVerbose // OnTxAcceptedVerbose
case btcws.TxAcceptedVerboseNtfnMethod: case btcws.TxAcceptedVerboseNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnTxAcceptedVerbose == nil { if c.ntfnHandlers.OnTxAcceptedVerbose == nil {
return return
@ -324,7 +324,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnBtcdConnected // OnBtcdConnected
case btcws.BtcdConnectedNtfnMethod: case btcws.BtcdConnectedNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnBtcdConnected == nil { if c.ntfnHandlers.OnBtcdConnected == nil {
return return
@ -341,7 +341,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnAccountBalance // OnAccountBalance
case btcws.AccountBalanceNtfnMethod: case btcws.AccountBalanceNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnAccountBalance == nil { if c.ntfnHandlers.OnAccountBalance == nil {
return return
@ -358,7 +358,7 @@ func (c *Client) handleNotification(ntfn *rawNotification) {
// OnWalletLockState // OnWalletLockState
case btcws.WalletLockStateNtfnMethod: case btcws.WalletLockStateNtfnMethod:
// Ignore the notification is the client is not interested in // Ignore the notification if the client is not interested in
// it. // it.
if c.ntfnHandlers.OnWalletLockState == nil { if c.ntfnHandlers.OnWalletLockState == nil {
return return