-
Notifications
You must be signed in to change notification settings - Fork 520
Conversation
return false; | ||
} | ||
if (files.Length <= 1) | ||
continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit prefer braces.
Added braces |
There is something wrong with the build pipeline. The Build Windows task timed out on this PR as well. (This happened with with #767 too). |
@@ -23,12 +23,14 @@ public static bool TryFindSupportedFile(string directoryPath, out string? filePa | |||
return true; | |||
} | |||
|
|||
if (files.Length > 1) | |||
if (files.Length <= 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this condition only applicable when the length is 0? If so let's just make it if (files.Length == 0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit. Otherwise ready to merge.
@JunTaoLuo Yeah, you're right. It was late when I made the change. 😄 |
* removed one intend * changed 0 <= into == 0 because it can not be less then zero see also #786 for more informations * added newline looks nicer * removed intend if * use of initalizes * check for not null * removed if nesteding * check for null * check for null * remove if nesting * added initializer * use of language feature destruction key value * removed unused () brakes * use of switch statment instend of if
No description provided.