Skip to content

Commit

Permalink
Don't use keypaths as functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaandedeoglu committed Dec 15, 2020
1 parent 440eaac commit dab1715
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .swiftpm/xcode/xcshareddata/xcschemes/Shark.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "/Users/kaandedeoglu/Code/rooms-ios/"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "/Users/kaandedeoglu/Desktop/"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Shark/FontEnumBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ enum FontEnumBuilder {

var components = fullName.split(separator: " ")
let first = components.removeFirst().lowercased()
let rest = components.map(\.capitalized)
let rest = components.map { $0.capitalized }
let methodName = ([first] + rest).joined()

return FontValue(methodName: methodName,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Shark/XcodeProjectHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct XcodeProjectHelper {
}

return try targetResourcesFiles
.compactMap(\.file)
.compactMap { $0.file }
.flatMap(paths(for:))
.reduce(into: ResourcePaths(), { result, path in
switch path.pathExtension {
Expand Down

0 comments on commit dab1715

Please sign in to comment.