We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a03ec4a commit b0e8ac6Copy full SHA for b0e8ac6
src/unityHub.ts
@@ -92,11 +92,7 @@ class UnityHub {
92
*/
93
public static async isUnityHubAvailable(): Promise<boolean> {
94
try {
95
- if (!this.hubPath || !fs.existsSync(this.hubPath)) {
96
- return false;
97
- } else {
98
- return true;
99
- }
+ return !this.hubPath || !fs.existsSync(this.hubPath);
100
} catch (error) {
101
console.error("Error checking Unity Hub availability:", error);
102
return false;
0 commit comments