Skip to content

Commit

Permalink
update syntax & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhatch committed Sep 4, 2022
1 parent 00b215e commit 87b55d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Derulo.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Derulo'
s.version = '1.7.0'
s.version = '1.7.1'
s.summary = 'A flexible collection of Swift protocols and helpers to organize and manage translating between JSON and native Swift objects.'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Sources/Derulo/JSONConverter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public struct JSONConverter<T: JSONConvertible>: JSONConversionHelper {
}

public func json(fromObject: T) -> JSON {
return fromObject.asJSON
fromObject.asJSON
}

public func jsonArray(fromArray: [T]?) -> [JSON]? {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Derulo/JSONPersistenceConverter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public struct JSONPersistenceConverter<T: JSONPersistable>: JSONConversionHelper
}

public func json(fromObject: T) -> JSON {
return fromObject.asPersistenceJSON
fromObject.asPersistenceJSON
}

public func jsonArray(fromArray: [T]?) -> [JSON]? {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Derulo/JSONPersistenceManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ private struct JSONFileManager {
//MARK: - Load (Public API)

static func loadJSON(withFilename filename: String) -> JSON? {
return load(withFilename: filename) as? JSON
load(withFilename: filename) as? JSON
}

static func loadJSONArray(withFilename filename: String) -> [JSON]? {
return load(withFilename: filename) as? [JSON]
load(withFilename: filename) as? [JSON]
}

//MARK: - Private Load
Expand Down Expand Up @@ -125,7 +125,7 @@ private struct JSONFileManager {
//MARK: - Private

private static func path(forFilename filename: String) -> URL {
return documentsDirectory.appendingPathComponent("\(filename)")
documentsDirectory.appendingPathComponent("\(filename)")
}

private static var documentsDirectory: URL {
Expand Down

0 comments on commit 87b55d6

Please sign in to comment.