Skip to content

Commit

Permalink
Revert "Fix linting (temporary)"
Browse files Browse the repository at this point in the history
This reverts commit faf5478.
  • Loading branch information
FelixHerrmann committed Apr 2, 2023
1 parent c734010 commit 9c126cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/MultipartFormData/ContentDisposition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension ContentDisposition {
guard let percentEncodedName = name.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) else {
throw PercentEncodingError(initialValue: name)
}
if let filename: String {
if let filename {
guard let percentEncodedFilename = filename.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) else {
throw PercentEncodingError(initialValue: filename)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MultipartFormData/Subpart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extension Subpart {
@HTTPHeaderBuilder header: () throws -> HTTPHeaderBuilder.BuildResult,
@BodyDataBuilder body: () throws -> Data
) rethrows {
let headerFields: HTTPHeaderBuilder.BuildResult = try header()
let headerFields = try header()
self.contentDisposition = headerFields._contentDisposition
self.contentType = headerFields._contentType
self.body = try body()
Expand Down

0 comments on commit 9c126cc

Please sign in to comment.