summaryrefslogtreecommitdiff
path: root/pkg/idec/point.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/idec/point.go')
-rw-r--r--pkg/idec/point.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/idec/point.go b/pkg/idec/point.go
index 897c1bb..74bfc47 100644
--- a/pkg/idec/point.go
+++ b/pkg/idec/point.go
@@ -13,7 +13,7 @@ import (
var errPointFound = errors.New("point found")
-func (i *IDEC) GetPointByAuth(auth string) (*model.Point, error) {
+func (i *IDEC) GetPointByAuth(pauth string) (*model.Point, error) {
point := new(model.Point)
return point, i.db.View(func(tx *bbolt.Tx) error {
@@ -25,7 +25,7 @@ func (i *IDEC) GetPointByAuth(auth string) (*model.Point, error) {
if err := gob.NewDecoder(bytes.NewBuffer(v)).Decode(point); err != nil {
return err
}
- if point.AuthString == auth {
+ if point.AuthString == pauth {
return errPointFound
}