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 /cmd/fscrypt/commands.go | |
| parent | 3d99996924f2ee24581e8e557f3aa05ed7822e99 (diff) | |
| parent | 69630f37fcebe894b15872148bd8b2496806b60c (diff) | |
Merge pull request #87 from google/cleanup
Minor fixes and cleanup
Diffstat (limited to 'cmd/fscrypt/commands.go')
| -rw-r--r-- | cmd/fscrypt/commands.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/fscrypt/commands.go b/cmd/fscrypt/commands.go index 2f23a0f..66450c7 100644 --- a/cmd/fscrypt/commands.go +++ b/cmd/fscrypt/commands.go @@ -519,7 +519,7 @@ func createProtectorAction(c *cli.Context) error { } prompt := fmt.Sprintf("Create new protector on %q", ctx.Mount.Path) - if err := askConfirmation(prompt, true, ""); err != nil { + if err = askConfirmation(prompt, true, ""); err != nil { return newExitError(c, err) } @@ -561,20 +561,20 @@ func createPolicyAction(c *cli.Context) error { return newExitError(c, err) } - if err := checkRequiredFlags(c, []*stringFlag{protectorFlag}); err != nil { + if err = checkRequiredFlags(c, []*stringFlag{protectorFlag}); err != nil { return err } protector, err := getProtectorFromFlag(protectorFlag.Value, ctx.TargetUser) if err != nil { return newExitError(c, err) } - if err := protector.Unlock(existingKeyFn); err != nil { + if err = protector.Unlock(existingKeyFn); err != nil { return newExitError(c, err) } defer protector.Lock() prompt := fmt.Sprintf("Create new policy on %q", ctx.Mount.Path) - if err := askConfirmation(prompt, true, ""); err != nil { + if err = askConfirmation(prompt, true, ""); err != nil { return newExitError(c, err) } |