Skip to content

Commit 3b31924

Browse files
committed
Refine code
1 parent 022b897 commit 3b31924

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/views/PrimaryTypeNode.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export class PrimaryTypeNode extends DataNode {
2828
}
2929

3030
const unmanagedFolder = this.getUnmanagedFolderAncestor();
31-
if (unmanagedFolder) {
32-
return unmanagedFolder.uri ? Uri.parse(unmanagedFolder.uri).fsPath : "";
31+
if (unmanagedFolder?.uri) {
32+
return Uri.parse(unmanagedFolder.uri).fsPath;
3333
}
3434

3535
return "";
@@ -142,7 +142,6 @@ export class PrimaryTypeNode extends DataNode {
142142
}
143143

144144
const data = <IPackageRootNodeData>rootNodeData;
145-
146145
if (data.entryKind === PackageRootKind.K_SOURCE) {
147146
return true;
148147
}

0 commit comments

Comments
 (0)