Got this piece of code:
if (self.competitionData.competitionList == nil) || (renewCache) {
// <things to be done>
}
where renewCache is a Bool.
I'm getting the following errors on this line:
- Expected '{' after 'if' condition
- Braced block of statements is an unused closure
- Invalid character in source file
but AFAIK I think it's correct. What's the problem?
Thanks.
renewCachein parens, which is unnecessary and mostly pointless. If you're still having this problem you need to post the rest of the problem context, a minimum reproducible example. - David BerryInvalid character in source fileThere are a number of Unicode characters (and therefore UTF-8) which could look like a normal space or even not show up and cause problems with your source code. Did you copy the code from a web page somewhere? - Paul Sasik