Skip to content

Commit

Permalink
🚨 (swiftformat): --enable isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Dec 6, 2023
1 parent c33da51 commit cf8645d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@

--enable initCoderUnavailable

--enable isEmpty

# Disabled rules

--disable blankLinesBetweenImports
Expand Down
2 changes: 1 addition & 1 deletion Apps/BLEKitExample/Sources/View/RobotListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct RobotListView: View {
)
.buttonStyle(.borderedProminent)
.tint(botVM.currentlyConnectedBotIndex == botVM.currentlySelectedBotIndex ? Color(.orange) : .accentColor)
.disabled(bleManager.peripherals.count == 0)
.disabled(bleManager.peripherals.isEmpty)
.disabled(botVM.currentlySelectedBotIndex == nil)
}
}

0 comments on commit cf8645d

Please sign in to comment.