diff --git a/.github/workflows/SwiftLint.yml b/.github/workflows/SwiftLint.yml index f1ed483a..67c1c1c0 100644 --- a/.github/workflows/SwiftLint.yml +++ b/.github/workflows/SwiftLint.yml @@ -41,6 +41,8 @@ jobs: echo "Linting changed Swift files..." swiftlint --config dydx/.swiftlint.yml --fix --format lint -- $SWIFT_FILES fi - git commit -am "SwiftLint" - git push + if [ 'git diff --quiet HEAD` -eq 1 ]; 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 f944e984..053cef32 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)