File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/SnapshotTesting/Plugins Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public class ImageSerializer {
3535 public func encodeImage( _ image: SnapImage , imageFormat: ImageSerializationFormat ) /*async throws*/ -> Data ? {
3636 for plugin in self . plugins {
3737 if type ( of: plugin) . imageFormat == imageFormat {
38- return /*try await*/ plugin. encodeImage ( image)
38+ return plugin. encodeImage ( image)
3939 }
4040 }
4141 // Default to PNG
@@ -55,7 +55,7 @@ public class ImageSerializer {
5555 public func decodeImage( _ data: Data , imageFormat: ImageSerializationFormat ) /*async throws*/ -> SnapImage ? {
5656 for plugin in self . plugins {
5757 if type ( of: plugin) . imageFormat == imageFormat {
58- return /*try await*/ plugin. decodeImage ( data)
58+ return plugin. decodeImage ( data)
5959 }
6060 }
6161 // Default to PNG
You can’t perform that action at this time.
0 commit comments