Skip to content

Commit

Permalink
Update S3Util.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jueuunn7 authored Jul 3, 2024
1 parent c0ffda2 commit cb4740e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class S3Util(

val splitFile = image.originalFilename.toString().split(".")

val extension = splitFile.last().lowercase()

if(splitFile.size != 2)
throw FileExtensionInvalidException()

val extension = splitFile.last().lowercase()

if(list.none { it == extension })
throw FileExtensionInvalidException()
Expand Down

0 comments on commit cb4740e

Please sign in to comment.