Skip to content

Commit 1332910

Browse files
committed
[CAE-563] Minor formatting fixes
1 parent fc1003f commit 1332910

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

packages/search/lib/commands/AGGREGATE_WITHCURSOR.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ export default {
2121
IS_READ_ONLY: AGGREGATE.IS_READ_ONLY,
2222
parseCommand(parser: CommandParser, index: RedisArgument, query: RedisArgument, options?: FtAggregateWithCursorOptions) {
2323
AGGREGATE.parseCommand(parser, index, query, options);
24-
2524
parser.push('WITHCURSOR');
2625

27-
if (options?.COUNT) {
26+
if (options?.COUNT !== undefined) {
2827
parser.push('COUNT', options.COUNT.toString());
2928
}
3029

31-
if(options?.MAXIDLE) {
30+
if(options?.MAXIDLE !== undefined) {
3231
parser.push('MAXIDLE', options.MAXIDLE.toString());
3332
}
3433
},

packages/search/lib/commands/EXPLAIN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
22
import { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';
33
import { FtSearchParams, parseParamsArgument } from './SEARCH';
44
import { DefaultDialect } from '../dialect/default';
5+
56
export interface FtExplainOptions {
67
PARAMS?: FtSearchParams;
78
DIALECT?: number;

packages/search/lib/commands/PROFILE_SEARCH.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe('PROFILE SEARCH', () => {
3636
]);
3737

3838
const res = await client.ft.profileSearch('index', '*');
39-
4039
assert.strictEqual('None', res.profile.warning);
4140
assert.ok(typeof res.profile.iteratorsProfile.counter === 'number');
4241
assert.ok(typeof res.profile.parsingTime === 'string');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const DefaultDialect = '2';
1+
export const DefaultDialect = '2';

0 commit comments

Comments
 (0)