You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @twostraws, I noticed that at the end of chapter 7-5, there is the following code:
if let url = URL(string: urlString) {
if let data = try? Data(contentsOf: url) {
parse(json: data)
return
} else {
showError()
}
} else {
showError()
}
In the next paragraph, you suggest to add a return statement after parse() to clean up the code by removing the else-statements. But the return statement is already in the code above. So it seems that the return should not be in the code above, but only in the cleaned-up code given after this paragraph. I will submit the German translation as is, but if you agree that this should be changed, let me know and I will modify the translation.
Cheers,
Peter
The text was updated successfully, but these errors were encountered:
Hi @twostraws, I noticed that at the end of chapter 7-5, there is the following code:
In the next paragraph, you suggest to add a
return
statement afterparse()
to clean up the code by removing theelse
-statements. But thereturn
statement is already in the code above. So it seems that thereturn
should not be in the code above, but only in the cleaned-up code given after this paragraph. I will submit the German translation as is, but if you agree that this should be changed, let me know and I will modify the translation.Cheers,
Peter
The text was updated successfully, but these errors were encountered: