Skip to content

Commit f23275d

Browse files
committed
Favor not double declaring the issue variable
1 parent c871de1 commit f23275d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mambaSharedFramework/Pantos-Generic HLS Playlist Parsing/Pantos-Generic Tag Validators/EXT_X_SESSION_DATAPlaylistValidator.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class EXT_X_SESSION_DATAPlaylistValidator: HLSPlaylistValidator {
2323
static func validate(hlsPlaylist: any HLSPlaylistInterface) -> [HLSValidationIssue]? {
2424
var issues = [HLSValidationIssue]()
2525

26-
let issue = duplicateIssue(tags: hlsPlaylist.tags.filter { $0.tagDescriptor == PantosTag.EXT_X_SESSION_DATA })
27-
if let issue {
26+
if let issue = duplicateIssue(
27+
tags: hlsPlaylist.tags.filter { $0.tagDescriptor == PantosTag.EXT_X_SESSION_DATA }
28+
) {
2829
issues.append(issue)
2930
}
3031

0 commit comments

Comments
 (0)