Remove extra checks that are not needed

This commit is contained in:
Matt Bierner
2019-07-15 15:02:23 -07:00
parent e5e29375f0
commit 711eca07d1
2 changed files with 2 additions and 2 deletions

View File

@@ -381,7 +381,7 @@ export abstract class EditorInput extends Disposable implements IEditorInput {
* for the input. This allows subclasses to decide late which editor to use for the input on a case by case basis.
*/
getPreferredEditorId(candidates: string[]): string | null {
if (candidates && candidates.length > 0) {
if (candidates.length > 0) {
return candidates[0];
}