From 471d4989c43c4480b33b7de22e6fe60ae1f0596d Mon Sep 17 00:00:00 2001 From: Rui Date: Mon, 6 Nov 2023 18:23:44 -0800 Subject: [PATCH] Fix --- .github/workflows/SwiftLint.yml | 5 +---- .../_v4/MarketInfo/dydxMarketInfoViewBuilder.swift | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/SwiftLint.yml b/.github/workflows/SwiftLint.yml index f3b53b794..53132399f 100644 --- a/.github/workflows/SwiftLint.yml +++ b/.github/workflows/SwiftLint.yml @@ -33,7 +33,6 @@ jobs: # Extract changed files and filter for Swift files FILES="${{ steps.changes.outputs.all }}" SWIFT_FILES=$(echo "$FILES" | grep -E '\.(swift)$' | xargs) - echo $SWIFT_FILES # Run SwiftLint on each changed Swift file # If no Swift files changed, skip the step if [ -z "$SWIFT_FILES" ]; then @@ -42,9 +41,7 @@ jobs: echo "Linting changed Swift files..." swiftlint --config dydx/.swiftlint.yml --fix --format lint -- $SWIFT_FILES fi - CHANGED=`git diff --quiet HEAD > /dev/null 2>&1` - if [ $CHANGED -ne 0 ]; then + if ! git diff --cached --quiet; then git commit -am "SwiftLint" git push fi - diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift b/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift index f944e9847..013e9458b 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/MarketInfo/dydxMarketInfoViewBuilder.swift @@ -16,7 +16,7 @@ import dydxStateManager import Abacus public class dydxMarketInfoViewBuilder: NSObject, ObjectBuilderProtocol { - public func build() -> T? { + public func build() -> T? { let presenter = dydxMarketInfoViewPresenter() let view = presenter.viewModel?.createView() ?? PlatformViewModel().createView() let viewController = dydxMarketInfoViewController(presenter: presenter, view: view, configuration: .nav)