diff options
| author | Joseph Richey <joerichey@google.com> | 2018-02-12 00:06:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-12 00:06:37 -0800 |
| commit | 57c646808e5f5077e60d004661bba4604650012b (patch) | |
| tree | 1ae1ed02acba2c9beef4a81652d5594c67cf60e6 /actions/protector.go | |
| parent | 3d99996924f2ee24581e8e557f3aa05ed7822e99 (diff) | |
| parent | 69630f37fcebe894b15872148bd8b2496806b60c (diff) | |
Merge pull request #87 from google/cleanup
Minor fixes and cleanup
Diffstat (limited to 'actions/protector.go')
| -rw-r--r-- | actions/protector.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/protector.go b/actions/protector.go index ffc3c43..fe5d694 100644 --- a/actions/protector.go +++ b/actions/protector.go @@ -123,7 +123,7 @@ func CreateProtector(ctx *Context, name string, keyFn KeyFunc) (*Protector, erro // UID for this kind of source. protector.data.Uid = int64(util.AtoiOrPanic(ctx.TargetUser.Uid)) // Make sure we aren't duplicating protectors - if err := checkIfUserHasLoginProtector(ctx, protector.data.Uid); err != nil { + if err = checkIfUserHasLoginProtector(ctx, protector.data.Uid); err != nil { return nil, err } fallthrough @@ -142,7 +142,7 @@ func CreateProtector(ctx *Context, name string, keyFn KeyFunc) (*Protector, erro } protector.data.ProtectorDescriptor = crypto.ComputeDescriptor(protector.key) - if err := protector.Rewrap(keyFn); err != nil { + if err = protector.Rewrap(keyFn); err != nil { protector.Lock() return nil, err } |