Skip to content

Commit

Permalink
Fix condition in formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
fbernutz committed May 15, 2024
1 parent 532d995 commit 51339ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cineaste/Models/Movie+Formatted.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension Movie {
}

var formattedRuntime: String {
guard let runtime else {
guard let runtime, runtime != 0 else {
return "\(String.unknownRuntime) min"
}

Expand Down

0 comments on commit 51339ad

Please sign in to comment.