Skip to content

Commit

Permalink
AE-2357: Remove unnecessary whens
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-juhohaa committed Dec 11, 2024
1 parent d8ee4f9 commit 8c8610a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@
(map :energiatodistus-id)))

(defn- redestroy-energiatodistus-pdf! [aws-s3-client key]
(when-not (empty? (file/key->version-ids aws-s3-client key))
(tag-versions-for-destruction aws-s3-client key))
(when (file/file-exists? aws-s3-client key)
(file/delete-file aws-s3-client key))
(tag-versions-for-destruction aws-s3-client key)
(file/delete-file aws-s3-client key)
(log/info (str "Ran redestruction on " key)))

(defn- redestroy-energiatodistus-pdfs! [aws-s3-client energiatodistus-id]
Expand Down

0 comments on commit 8c8610a

Please sign in to comment.