Skip to content

Commit

Permalink
Solves a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Caul58 committed Mar 30, 2024
1 parent de8d134 commit 32ba519
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum CustomError: Error {

func daysBetween(date1: String, date2: String) throws -> Int {

var formatter = DateFormatter()
let formatter = DateFormatter()
formatter.dateFormat = "dd/MM/yyyy"

let strongFormat = try! Regex("^(([0-9]){2}[/]){2}([0-9]){4}$")
Expand Down

0 comments on commit 32ba519

Please sign in to comment.