Skip to content

Commit c230a68

Browse files
committed
Fixing lint
1 parent f9c7139 commit c230a68

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

internal/extractors/swiftextractor/swift_xcodegen_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ func TestExtract_XcodeGenTargetModules(t *testing.T) {
253253
// TestTargetPriorityAndRoles guards the priority tiers (product > test > other)
254254
// and the role classification helpers.
255255
func TestTargetPriorityAndRoles(t *testing.T) {
256-
if !(targetPriority("application") > targetPriority("app-extension") &&
257-
targetPriority("app-extension") > targetPriority("framework") &&
258-
targetPriority("framework") > targetPriority("bundle.unit-test") &&
259-
targetPriority("bundle.unit-test") > targetPriority("aggregate")) {
256+
if targetPriority("application") <= targetPriority("app-extension") ||
257+
targetPriority("app-extension") <= targetPriority("framework") ||
258+
targetPriority("framework") <= targetPriority("bundle.unit-test") ||
259+
targetPriority("bundle.unit-test") <= targetPriority("aggregate") {
260260
t.Errorf("priority ordering wrong: app=%d ext=%d fw=%d test=%d other=%d",
261261
targetPriority("application"), targetPriority("app-extension"),
262262
targetPriority("framework"), targetPriority("bundle.unit-test"),
@@ -279,12 +279,12 @@ func TestTargetPriorityAndRoles(t *testing.T) {
279279
}
280280
}
281281
rolePath := map[string]string{
282-
"Tests/Core/Account": facts.ModuleRoleTest,
283-
"MyLib/Test": facts.ModuleRoleTest,
284-
"Scripts/Localizations": facts.ModuleRoleTooling,
285-
"fastlane": facts.ModuleRoleTooling,
286-
"ci_scripts": facts.ModuleRoleTooling,
287-
"Sources/Core": facts.ModuleRoleUnknown,
282+
"Tests/Core/Account": facts.ModuleRoleTest,
283+
"MyLib/Test": facts.ModuleRoleTest,
284+
"Scripts/Localizations": facts.ModuleRoleTooling,
285+
"fastlane": facts.ModuleRoleTooling,
286+
"ci_scripts": facts.ModuleRoleTooling,
287+
"Sources/Core": facts.ModuleRoleUnknown,
288288
}
289289
for p, want := range rolePath {
290290
if got := facts.ModuleRoleForPath(p); got != want {

0 commit comments

Comments
 (0)