Skip to content

Commit dd94a7c

Browse files
brennanMKEroyjit
authored andcommitted
fix(storage): corrects logic in fail function for StorageTransferTask (#1661)
1 parent a9f6437 commit dd94a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AmplifyPlugins/Storage/AWSS3StoragePlugin/Support/Internal/StorageTransferTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class StorageTransferTask {
145145
}
146146

147147
func fail(error: Error) {
148-
guard status == .error else {
148+
guard status != .error else {
149149
logger.warn("Task is already failed: \(error)")
150150
return
151151
}

0 commit comments

Comments
 (0)