Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 29, 2024
1 parent 47b7546 commit d8f9ce3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func isLocalLocator(locator string) bool {
}

func shouldBlockAbsoluteLocatorBecauseIsInTheSameSourceModuleLocatorPackage(relativeOrAbsoluteLocator string, sourceModuleLocator string, rootPackageId string) bool {
isSourceModuleInRootPackage := strings.Contains(sourceModuleLocator, rootPackageId)
isAbsoluteLocatorInRootPackage := strings.Contains(relativeOrAbsoluteLocator, rootPackageId)
isSourceModuleInRootPackage := strings.Contains(sourceModuleLocator, rootPackageId + "/")
isAbsoluteLocatorInRootPackage := strings.Contains(relativeOrAbsoluteLocator, rootPackageId + "/")
return isSourceModuleInRootPackage && isAbsoluteLocatorInRootPackage
}

Expand Down

0 comments on commit d8f9ce3

Please sign in to comment.