Skip to content

Commit

Permalink
handleRequest value can also be empty (#11889)
Browse files Browse the repository at this point in the history
Signed-off-by: thegecko <[email protected]>

Signed-off-by: thegecko <[email protected]>
  • Loading branch information
thegecko authored Nov 21, 2022
1 parent 4d3d0c2 commit e950d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/label-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export class LabelProvider implements FrontendApplicationContribution {
protected handleRequest(element: object, method: keyof Omit<LabelProviderContribution, 'canHandle' | 'onDidChange' | 'affects'>): string | undefined {
for (const contribution of this.findContribution(element, method)) {
const value = contribution[method]?.(element);
if (value !== undefined) {
if (!!value) {
return value;
}
}
Expand Down

0 comments on commit e950d39

Please sign in to comment.