We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 106c297 commit 649ce56Copy full SHA for 649ce56
Sources/SnapshotTesting/Plugins/ImageSerializer.swift
@@ -35,7 +35,7 @@ public class ImageSerializer {
35
public func encodeImage(_ image: SnapImage, imageFormat: ImageSerializationFormat) /*async throws*/ -> Data? {
36
for plugin in self.plugins {
37
if type(of: plugin).imageFormat == imageFormat {
38
- return /*try await*/ plugin.encodeImage(image)
+ return plugin.encodeImage(image)
39
}
40
41
// Default to PNG
@@ -55,7 +55,7 @@ public class ImageSerializer {
55
public func decodeImage(_ data: Data, imageFormat: ImageSerializationFormat) /*async throws*/ -> SnapImage? {
56
57
58
- return /*try await*/ plugin.decodeImage(data)
+ return plugin.decodeImage(data)
59
60
61
0 commit comments