Skip to content

Commit 8879ae5

Browse files
authored
Merge pull request swiftlang#76116 from bnbarham/remove-another-endswith
[Cleanup] Rename another `endswith`
2 parents c56a313 + b82c6bd commit 8879ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/SearchPathOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static std::string computeSDKPlatformPath(StringRef SDKPath,
9393
llvm::sys::path::remove_filename(platformPath); // SDKs
9494
llvm::sys::path::remove_filename(platformPath); // Developer
9595

96-
if (!llvm::sys::path::filename(platformPath).endswith(".platform"))
96+
if (!llvm::sys::path::filename(platformPath).ends_with(".platform"))
9797
return "";
9898

9999
return platformPath.str().str();

0 commit comments

Comments
 (0)