remove extra paranthesis
This commit is contained in:
parent
6e5980af64
commit
21f24b2c9b
@ -85,7 +85,7 @@ import VDSColorTokens
|
|||||||
@MainActor
|
@MainActor
|
||||||
public func highlightTab(at index: Int) {
|
public func highlightTab(at index: Int) {
|
||||||
guard let items = items, index < items.count else {
|
guard let items = items, index < items.count else {
|
||||||
MVMCoreLoggingHandler.shared()?.addError(toLog: MVMCoreErrorObject(title: nil, messageToLog: "Tab index \(index) is greater than the number of tabs available (\(items?.count ?? 0).", code: 0, domain: ErrorDomainSystem, location: #function)!)
|
MVMCoreLoggingHandler.shared()?.addError(toLog: MVMCoreErrorObject(title: nil, messageToLog: "Tab index \(index) is greater than the number of tabs available \(items?.count ?? 0).", code: 0, domain: ErrorDomainSystem, location: #function)!)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tabModel.selectedTab = index
|
tabModel.selectedTab = index
|
||||||
@ -95,7 +95,7 @@ import VDSColorTokens
|
|||||||
@MainActor
|
@MainActor
|
||||||
public func selectTab(at index: Int) {
|
public func selectTab(at index: Int) {
|
||||||
guard let items = items, index < items.count else {
|
guard let items = items, index < items.count else {
|
||||||
MVMCoreLoggingHandler.shared()?.addError(toLog: MVMCoreErrorObject(title: nil, messageToLog: "Tab index \(index) is greater than the number of tabs available (\(items?.count ?? 0).", code: 0, domain: ErrorDomainSystem, location: #function)!)
|
MVMCoreLoggingHandler.shared()?.addError(toLog: MVMCoreErrorObject(title: nil, messageToLog: "Tab index \(index) is greater than the number of tabs available \(items?.count ?? 0).", code: 0, domain: ErrorDomainSystem, location: #function)!)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
selectedItem = items[index]
|
selectedItem = items[index]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user