Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Tyler Hedrick <[email protected]>
  • Loading branch information
dpt and thedrick authored Jun 3, 2019
1 parent f20ac74 commit 6eb2b26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lottie-swift/src/Private/Model/Animation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ public class Animation: Codable {
let markerMap: [String : Marker]?

/// Return all marker names, in order, or an empty list if none are specified
public var markerNames: [String]
{
public var markerNames: [String] {
guard let markers = markers else { return [] }
return markers.map{$0.name}
return markers.map { $0.name }
}

enum CodingKeys : String, CodingKey {
Expand Down

0 comments on commit 6eb2b26

Please sign in to comment.