aboutsummaryrefslogtreecommitdiff
path: root/bridge.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-16 23:00:58 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-16 23:00:58 -0500
commitb52b2b77e142d0315683b0a4d7565527f1264524 (patch)
tree374163050ee1a4f9cfb642a1c893862cdc2d926d /bridge.go
parent39254dee24bbca708bedbf463604ed412c385c78 (diff)
Renamed all 'self' definitions to resemble the struct name.
Diffstat (limited to 'bridge.go')
-rw-r--r--bridge.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge.go b/bridge.go
index 61d817d..808fa4d 100644
--- a/bridge.go
+++ b/bridge.go
@@ -56,9 +56,9 @@ type Device struct {
}
// bridge.Get sends an http GET to the bridge
-func (self *Bridge) Get(path string) ([]byte, io.Reader, error) {
- resp, err := http.Get("http://" + self.IPAddress + path)
- if self.Error(resp, err) {
+func (bridge *Bridge) Get(path string) ([]byte, io.Reader, error) {
+ resp, err := http.Get("http://" + bridge.IPAddress + path)
+ if bridge.Error(resp, err) {
return []byte{}, nil, err
}
return HandleResponse(resp)