summaryrefslogtreecommitdiff
path: root/cmd/goaes/commands/encrypt.go
diff options
context:
space:
mode:
authorLevi Durfee <levi.durfee@gmail.com>2026-01-07 09:11:22 -0500
committerLevi Durfee <levi.durfee@gmail.com>2026-01-07 09:11:37 -0500
commit2ef8032a77b5c630000fc047fb0d1cee5f01e461 (patch)
tree0874aed2d5f3a6ab4e77b7ad74c9001841c625f4 /cmd/goaes/commands/encrypt.go
parentcde8ee415e8529edb74b83d14e9abb87bdd26648 (diff)
Add linter
Diffstat (limited to 'cmd/goaes/commands/encrypt.go')
-rw-r--r--cmd/goaes/commands/encrypt.go5
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
}