Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Nov 7, 2023
1 parent 0515ef5 commit 471d498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/SwiftLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import dydxStateManager
import Abacus

public class dydxMarketInfoViewBuilder: NSObject, ObjectBuilderProtocol {
public func build<T>() -> T? {
public func build<T>() -> T? {
let presenter = dydxMarketInfoViewPresenter()
let view = presenter.viewModel?.createView() ?? PlatformViewModel().createView()
let viewController = dydxMarketInfoViewController(presenter: presenter, view: view, configuration: .nav)
Expand Down

0 comments on commit 471d498

Please sign in to comment.