Skip to content

Commit

Permalink
Ignore errors when deleting temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Nov 30, 2020
1 parent a112164 commit 732c1c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/FigmaExport/Subcommands/ExportImages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ extension FigmaExportCommand {
}
try fileWritter.write(files: localFiles)

try FileManager.default.removeItem(at: tempDirectoryLightURL)
try FileManager.default.removeItem(at: tempDirectoryDarkURL)
try? FileManager.default.removeItem(at: tempDirectoryLightURL)
try? FileManager.default.removeItem(at: tempDirectoryDarkURL)
}

private func exportAndroidRasterImages(images: [AssetPair<ImagesProcessor.AssetType>], params: Params, logger: Logger) throws {
Expand Down Expand Up @@ -275,7 +275,7 @@ extension FigmaExportCommand {
}
try fileWritter.write(files: localFiles)

try FileManager.default.removeItem(at: tempDirectoryURL)
try? FileManager.default.removeItem(at: tempDirectoryURL)
}

/// Make array of remote FileContents for downloading images
Expand Down

0 comments on commit 732c1c9

Please sign in to comment.