refactor: Remove useless comment

This commit is contained in:
Joachim Van Herwegen 2021-07-13 15:13:16 +02:00 committed by GitHub
parent 1ed733a2a7
commit 64a56245e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,10 +67,6 @@ export function getWeightedPreferences(types: ValuePreferences, preferred: Value
.sort(({ weight: weightA }, { weight: weightB }): number => weightB - weightA);
}
/**
* Finds the best result from the `available` values when matching against the `preferred` preferences.
* `undefined` if there is no match.
*/
/**
* Finds the type from the given types that has the best match with the given preferences,
* based on the calculated weight.