diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift b/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift index eb1e1db90..32e7e880e 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift @@ -27,7 +27,7 @@ public class dydxMarketInfoViewBuilder: NSObject, ObjectBuilderProtocol { private class dydxMarketInfoViewController: HostingViewController { override public func arrive(to request: RoutingRequest?, animated: Bool) -> Bool { - if (request?.path == "/trade" || request?.path == "/market"), let presenter = presenter as? dydxMarketInfoViewPresenter { + if (request?.path == "/trade" || request?.path == "/market"), let presenter = presenter as? dydxMarketInfoViewPresenter { presenter.marketId = request?.params?["market"] as? String ?? "ETH-USD" DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { if request?.path == "/trade" { @@ -133,8 +133,8 @@ private class dydxMarketInfoViewPresenter: HostedViewPresenter&2 + +# Stash any unstaged changes +git stash -q --keep-index + +# Run SwiftLint only on staged files +git diff --cached --name-only --diff-filter=ACM | grep "\.swift$" | while read file; do + swiftlint --fix --format "$file" 2>/dev/null +done + +# Stash the unstaged changes that were stashed previously +git stash pop -q + +exit 0