File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ private func evaluateIfConfig(
196
196
197
197
// Logical '!'.
198
198
if let prefixOp = condition. as ( PrefixOperatorExprSyntax . self) ,
199
- prefixOp. operator? . text == " ! "
199
+ prefixOp. operator. text == " ! "
200
200
{
201
201
return try ! evaluateIfConfig( condition: prefixOp. expression, configuration: configuration)
202
202
}
@@ -249,13 +249,13 @@ private func evaluateIfConfig(
249
249
// Ensure that we have a single unlabeled argument that is either >= or < as a prefix
250
250
// operator applied to a version.
251
251
guard let argExpr = call. arguments. singleUnlabeledExpression,
252
- let unaryArg = argExpr. as ( PrefixOperatorExprSyntax . self) ,
253
- let opToken = unaryArg. operator
252
+ let unaryArg = argExpr. as ( PrefixOperatorExprSyntax . self)
254
253
else {
255
254
throw IfConfigError . requiresUnlabeledArgument ( name: fnName, role: " version comparison (>= or <= a version) " )
256
255
}
257
256
258
257
// Parse the version.
258
+ let opToken = unaryArg. operator
259
259
guard let version = VersionTuple ( parsing: unaryArg. expression. trimmedDescription) else {
260
260
throw IfConfigError . invalidVersionOperand ( name: fnName, syntax: unaryArg. expression)
261
261
}
You can’t perform that action at this time.
0 commit comments