Skip to content

Commit ba34fde

Browse files
committed
Remove use of deprecated ++
1 parent ee8c723 commit ba34fde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ArgumentParser.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public final class ArgumentParser : ArgumentConvertible, CustomStringConvertible
118118
}
119119
fallthrough
120120
default:
121-
++index
121+
index += 1
122122
}
123123

124124
if hasOption {
@@ -160,7 +160,7 @@ public final class ArgumentParser : ArgumentConvertible, CustomStringConvertible
160160
break
161161
}
162162

163-
++index
163+
index += 1
164164
}
165165

166166
return false
@@ -186,7 +186,7 @@ public final class ArgumentParser : ArgumentConvertible, CustomStringConvertible
186186
break
187187
}
188188

189-
++index
189+
index += 1
190190
}
191191

192192
return false
@@ -211,7 +211,7 @@ public final class ArgumentParser : ArgumentConvertible, CustomStringConvertible
211211
}
212212
fallthrough
213213
default:
214-
++index
214+
index += 1
215215
}
216216

217217
if hasFlag {

0 commit comments

Comments
 (0)