Skip to content

Commit 7620a23

Browse files
committed
Making it easier to null-out the nightscout credentials
1 parent 4e045cb commit 7620a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Models/NightscoutService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct NightscoutService: ServiceAuthentication {
4747
}
4848

4949
var siteURL: NSURL? {
50-
if let URLString = credentials[0].value {
50+
if let URLString = credentials[0].value where !URLString.isEmpty {
5151
return NSURL(string: URLString)
5252
}
5353

0 commit comments

Comments
 (0)