@@ -41,7 +41,7 @@ public struct TaskDependencyVerification {
41
41
) async -> CommandResult where T : Decodable {
42
42
do {
43
43
if let taskDependencySettings = ( ctx. task. payload as? ( any TaskDependencySettingsPayload ) ) ? . taskDependencySettings {
44
- if ( taskDependencySettings. dependencySettings. verification) {
44
+ if taskDependencySettings. dependencySettings. verification {
45
45
return try await execWithDependencyVerification (
46
46
ctx: ctx,
47
47
taskDependencySettings: taskDependencySettings,
@@ -67,7 +67,7 @@ public struct TaskDependencyVerification {
67
67
) async throws -> CommandResult where T : Decodable {
68
68
69
69
let traceFile = taskDependencySettings. traceFile
70
- if ( ctx. executionDelegate. fs. exists ( traceFile) ) {
70
+ if ctx. executionDelegate. fs. exists ( traceFile) {
71
71
try ctx. executionDelegate. fs. remove ( traceFile)
72
72
}
73
73
@@ -78,7 +78,7 @@ public struct TaskDependencyVerification {
78
78
79
79
let execResult = try await adapter. exec ( ctx: ctx, env: env)
80
80
81
- if ( execResult == . succeeded) {
81
+ if execResult == . succeeded) {
82
82
let traceData = try readAndMaybeMergeTraceFile (
83
83
type: T . self,
84
84
fs: ctx. executionDelegate. fs,
@@ -92,7 +92,7 @@ public struct TaskDependencyVerification {
92
92
dependencySettings: taskDependencySettings. dependencySettings,
93
93
)
94
94
95
- if ( !verified) {
95
+ if !verified {
96
96
return . failed
97
97
}
98
98
}
@@ -167,7 +167,7 @@ extension TaskDependencyVerification.Adapter {
167
167
}
168
168
169
169
// Any left are undeclared dependencies
170
- if ( !used. isEmpty) {
170
+ if !used. isEmpty {
171
171
let undeclared = used. map {
172
172
$0. key + " \n " + $0. value. map { " - " + $0. str } . joined ( separator: " \n " )
173
173
}
0 commit comments