diff options
| author | Levi Durfee <levi.durfee@gmail.com> | 2026-01-07 09:11:22 -0500 |
|---|---|---|
| committer | Levi Durfee <levi.durfee@gmail.com> | 2026-01-07 09:11:37 -0500 |
| commit | 2ef8032a77b5c630000fc047fb0d1cee5f01e461 (patch) | |
| tree | 0874aed2d5f3a6ab4e77b7ad74c9001841c625f4 /cmd/goaes/commands/encrypt.go | |
| parent | cde8ee415e8529edb74b83d14e9abb87bdd26648 (diff) | |
Add linter
Diffstat (limited to 'cmd/goaes/commands/encrypt.go')
| -rw-r--r-- | cmd/goaes/commands/encrypt.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/goaes/commands/encrypt.go b/cmd/goaes/commands/encrypt.go index 0c5d578..47809c4 100644 --- a/cmd/goaes/commands/encrypt.go +++ b/cmd/goaes/commands/encrypt.go @@ -32,7 +32,10 @@ func Encrypt(ctx context.Context, cmd *cli.Command) error { return err } - os.WriteFile(destination, dataBuffer.Bytes(), 0666) + err = os.WriteFile(destination, dataBuffer.Bytes(), 0666) + if err != nil { + return err + } return nil } |
