Skip to content

Commit

Permalink
chore: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 29, 2024
1 parent d8f9ce3 commit ca30fa1
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.HasPrefix(sourceModuleLocator, rootPackageId + "/")
isAbsoluteLocatorInRootPackage := strings.HasPrefix(relativeOrAbsoluteLocator, rootPackageId + "/")
return isSourceModuleInRootPackage && isAbsoluteLocatorInRootPackage
}

Expand Down

0 comments on commit ca30fa1

Please sign in to comment.