Skip to content

Commit 0b203a4

Browse files
Simplify logical condition to use AND with short-circuiting
Co-authored-by: mandel-macaque <[email protected]>
1 parent d3f208c commit 0b203a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msbuild/Xamarin.MacDev.Tasks/Tasks/FilterStaticFrameworks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class FilterStaticFrameworks : XamarinTask, ITaskCallback {
2222

2323
static string GetFrameworkExecutablePath (string frameworkPath)
2424
{
25-
if (!frameworkPath.EndsWith (".framework", StringComparison.OrdinalIgnoreCase) || !Directory.Exists (frameworkPath))
25+
if (!(frameworkPath.EndsWith (".framework", StringComparison.OrdinalIgnoreCase) && Directory.Exists (frameworkPath)))
2626
return frameworkPath;
2727

2828
// Try to read the CFBundleExecutable from Info.plist

0 commit comments

Comments
 (0)