I am using SwiftLint in my app. I am getting Control Statement Violation: if
, for
, guard
, switch
, while
, and catch
statements shouldn't unnecessarily wrap their conditionals or arguments in parentheses. (control_statement).
What is wrong with that code? Why i am getting that waring?
Thanks in Advance
for i in 0..<images.count {
if(i == images.endIndex - 1) {
print(i)
}
}