File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Sources/XcCommand/Subcommands Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ extension XcCommand {
55
55
var specifier = specifierOptions. specifier
56
56
if case . nil = specifier {
57
57
let xcodeVersion = ( try ? XcodeVersion . string) ?? . init( )
58
- specifier = try . init( expressionString: xcodeVersion)
58
+ if !xcodeVersion. isEmpty {
59
+ specifier = try . init( expressionString: xcodeVersion)
60
+ }
59
61
}
60
62
guard let xcode = xcodes. filter ( licenseTypes: licenseTypes) . filter ( specifier: specifier) . sorted ( specifier: specifier) . first
61
63
else {
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ extension XcCommand {
36
36
var specifier = specifierOptions. specifier
37
37
if case . nil = specifier {
38
38
let xcodeVersion = ( try ? XcodeVersion . string) ?? . init( )
39
- specifier = try . init( expressionString: xcodeVersion)
39
+ if !xcodeVersion. isEmpty {
40
+ specifier = try . init( expressionString: xcodeVersion)
41
+ }
40
42
}
41
43
guard
42
44
let xcode =
You can’t perform that action at this time.
0 commit comments