Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Nov 7, 2023
1 parent f5508f5 commit 0515ef5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/SwiftLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ 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 @@ -41,8 +42,8 @@ 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
CHANGED=`git diff --quiet HEAD > /dev/null 2>&1`
if [ $CHANGED -ne 0 ]; then
git commit -am "SwiftLint"
git push
fi
Expand Down
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 0515ef5

Please sign in to comment.