Skip to content

Commit 08901fe

Browse files
author
Phoebe Szmucer
committed
Remove unnecessary braces
1 parent a5e4914 commit 08901fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/stringCompletions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function getBaseDirectoriesFromRootDirs(rootDirs: string[], basePath: string, sc
630630

631631
// Determine the path to the directory containing the script relative to the root directory it is contained within
632632
const relativeDirectory = firstDefined(rootDirs, rootDirectory => {
633-
const rootDirectoryWithSlash = rootDirectory.endsWith("/") ? rootDirectory : (rootDirectory + "/");
633+
const rootDirectoryWithSlash = rootDirectory.endsWith("/") ? rootDirectory : rootDirectory + "/";
634634
return containsPath(rootDirectoryWithSlash, scriptDirectory, basePath, ignoreCase) ? scriptDirectory.substr(rootDirectoryWithSlash.length) : undefined;
635635
})!; // TODO: GH#18217
636636

0 commit comments

Comments
 (0)