Skip to content

Commit de44553

Browse files
authored
avoid const-export-function-expression (microsoft#250826)
microsoft#248387
1 parent 1330a32 commit de44553

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/vs/base/common/glob.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,7 @@ const NULL = function (): string | null {
311311
*
312312
* See {@link FALSE} and {@link NULL}.
313313
*/
314-
export const isEmptyPattern = (
315-
pattern: ParsedPattern | ParsedExpression,
316-
): pattern is (typeof FALSE | typeof NULL) => {
314+
export function isEmptyPattern(pattern: ParsedPattern | ParsedExpression): pattern is (typeof FALSE | typeof NULL) {
317315
if (pattern === FALSE) {
318316
return true;
319317
}
@@ -323,7 +321,7 @@ export const isEmptyPattern = (
323321
}
324322

325323
return false;
326-
};
324+
}
327325

328326
function parsePattern(arg1: string | IRelativePattern, options: IGlobOptions): ParsedStringPattern {
329327
if (!arg1) {

0 commit comments

Comments
 (0)