Skip to content

Commit d930a50

Browse files
committed
Remove unneeded tasks
1 parent 4bbab63 commit d930a50

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Shared/Samples/Trace utility network/TraceUtilityNetworkView.Model.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,16 @@ extension TraceUtilityNetworkView {
158158
fractionalLengthClosestTo: mapPoint,
159159
tolerance: -1
160160
)
161-
Task {
162-
updateUserHint(
163-
withMessage: String(format: "fractionAlongEdge: %.3f", element.fractionAlongEdge)
164-
)
165-
}
161+
updateUserHint(
162+
withMessage: String(format: "fractionAlongEdge: %.3f", element.fractionAlongEdge)
163+
)
166164
add(element, at: mapPoint)
167165
}
168166
@unknown default:
169167
return
170168
}
171169
} else {
172-
Task {
173-
updateUserHint(withMessage: "An error occurred while adding element to the trace.")
174-
}
170+
updateUserHint(withMessage: "An error occurred while adding element to the trace.")
175171
}
176172
}
177173

0 commit comments

Comments
 (0)