Skip to content

Commit

Permalink
chore(ios): fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed May 2, 2024
1 parent 2d18146 commit 62a3420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Video/Features/RCTPlayerOperations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum RCTPlayerOperations {
}
} else if type == "index" {
if let value = criteria?.value { // check value is provided
if let indexValue: Int = Int(value as String) { // ensure value is an integer an String to Snt
if let indexValue = Int(value as String) { // ensure value is an integer an String to Snt
if textTracks.count > indexValue { // ensure value is in group range
selectedTrackIndex = indexValue
}
Expand Down Expand Up @@ -109,7 +109,7 @@ enum RCTPlayerOperations {
// option = group.defaultOption; */
} else if type == "index" {
if let value = criteria?.value { // check value is provided
if let indexValue: Int = Int(value as String) { // ensure value is an integer an String to Snt
if let indexValue = Int(value as String) { // ensure value is an integer an String to Snt
if group.options.count > indexValue { // ensure value is in group range
mediaOption = group.options[indexValue]
}
Expand Down

0 comments on commit 62a3420

Please sign in to comment.