diff options
| author | Eric Biggers <ebiggers@google.com> | 2022-04-08 16:15:22 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2022-04-08 16:25:01 -0700 |
| commit | 1f4543a97a862c4caf17eb69e0a21eb2ebb7de18 (patch) | |
| tree | 261fcd03e543ed89bb8330244e32af919f4268a8 /cmd/fscrypt/errors.go | |
| parent | 896549fa52002a65436625ad4fd7743b444f1135 (diff) | |
Remove unnecessary uses of fmt.Sprintf()
The latest version of 'staticcheck' warns about these.
Diffstat (limited to 'cmd/fscrypt/errors.go')
| -rw-r--r-- | cmd/fscrypt/errors.go | 4 |
1 files changed, 2 insertions, 2 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 |