aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2022-04-09 01:44:51 -0700
committerGitHub <noreply@github.com>2022-04-09 01:44:51 -0700
commit53dc5f37339f40e78cd0e91b358322cc9e589185 (patch)
tree68eb53440456ff6cc9c6ecef8b0567510de5310a /cmd/fscrypt
parentce8a5583c1cc2327cf65a048cfd1083225dad50e (diff)
parentba0a96b04b08f8c8b533d7dab7e6326c5ecd6ace (diff)
Merge pull request #354 from google/staticcheck-fix
Upgrade dependencies to latest version
Diffstat (limited to 'cmd/fscrypt')
-rw-r--r--cmd/fscrypt/errors.go4
-rw-r--r--cmd/fscrypt/flags.go8
2 files changed, 6 insertions, 6 deletions
diff --git a/cmd/fscrypt/errors.go b/cmd/fscrypt/errors.go
index 2d76792..1e9c39a 100644
--- a/cmd/fscrypt/errors.go
+++ b/cmd/fscrypt/errors.go
@@ -71,8 +71,8 @@ type ErrDirFilesOpen struct {
}
func (err *ErrDirFilesOpen) Error() string {
- return fmt.Sprintf(`Directory was incompletely locked because some files
- are still open. These files remain accessible.`)
+ return `Directory was incompletely locked because some files are still
+ open. These files remain accessible.`
}
// ErrDirUnlockedByOtherUsers indicates that a directory can't be locked because
diff --git a/cmd/fscrypt/flags.go b/cmd/fscrypt/flags.go
index 1b41839..7285133 100644
--- a/cmd/fscrypt/flags.go
+++ b/cmd/fscrypt/flags.go
@@ -144,10 +144,10 @@ var (
}
forceFlag = &boolFlag{
Name: "force",
- Usage: fmt.Sprintf(`Suppresses all confirmation prompts and
- warnings, causing any action to automatically proceed.
- WARNING: This bypasses confirmations for protective
- operations, use with care.`),
+ Usage: `Suppresses all confirmation prompts and warnings,
+ causing any action to automatically proceed. WARNING:
+ This bypasses confirmations for protective operations,
+ use with care.`,
}
skipUnlockFlag = &boolFlag{
Name: "skip-unlock",