Skip to content

Commit 649ce56

Browse files
committed
feat: code cleaning
1 parent 106c297 commit 649ce56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SnapshotTesting/Plugins/ImageSerializer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)