Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

swift 5 compatibility #32

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
swift 5 compatibility
  • Loading branch information
nysander authored Mar 26, 2019
commit e63a316e4c86d2726bc37400559673f3840b47bf
2 changes: 1 addition & 1 deletion Library/Foundation/Data+FileResource.swift
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ public extension Data {

- returns: A NSData object with the contents of the specified file.
*/
public init(resource: FileResourceType) throws {
init(resource: FileResourceType) throws {
guard let url = resource.url() else { throw NoUrlForResourceError() }
try self.init(contentsOf: url)
}