Skip to content

Commit

Permalink
Merge pull request #1 from bjornoleh/patch-1
Browse files Browse the repository at this point in the history
Xcode auto changes of indentation in NightscoutConfigStateModel.swift
  • Loading branch information
LiroyvH authored May 29, 2024
2 parents f902c73 + 9967d63 commit c9c9e19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ extension NightscoutConfig {
}

func connect() {
if let CheckURL = url.last, CheckURL == "/" {
let fixedURL = url.dropLast()
url = String(fixedURL)
}
if let CheckURL = url.last, CheckURL == "/" {
let fixedURL = url.dropLast()
url = String(fixedURL)
}
guard let url = URL(string: url) else {
message = "Invalid URL"
return
Expand Down

0 comments on commit c9c9e19

Please sign in to comment.