From bfe772859ae870d0c8828cc53b5a1ef1d9bd7f3a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 3 Nov 2025 14:58:55 +0400 Subject: [PATCH] Remove redundant code comments (#5596) (cherry picked from commit cca1aa99a1f9546cac5778f59b299d3a256d1171) --- .../indices/add_block/IndicesAddBlockRequest.ts | 10 +++++----- .../indices/remove_block/IndicesRemoveBlockRequest.ts | 10 +++++----- specification/ml/_types/Datafeed.ts | 2 +- specification/snapshot/status/SnapshotStatusRequest.ts | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/indices/add_block/IndicesAddBlockRequest.ts b/specification/indices/add_block/IndicesAddBlockRequest.ts index 8b4768931d..ddf5a41795 100644 --- a/specification/indices/add_block/IndicesAddBlockRequest.ts +++ b/specification/indices/add_block/IndicesAddBlockRequest.ts @@ -59,32 +59,32 @@ export interface Request extends RequestBase { * For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. * @server_default true */ - allow_no_indices?: boolean // default: true + allow_no_indices?: boolean /** * The type of index that wildcard patterns can match. * If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. * It supports comma-separated values, such as `open,hidden`. * @server_default open */ - expand_wildcards?: ExpandWildcards // default: open + expand_wildcards?: ExpandWildcards /** * If `false`, the request returns an error if it targets a missing or closed index. * @server_default false */ - ignore_unavailable?: boolean // default: false + ignore_unavailable?: boolean /** * The period to wait for the master node. * If the master node is not available before the timeout expires, the request fails and returns an error. * It can also be set to `-1` to indicate that the request should never timeout. * @server_default 30s */ - master_timeout?: Duration // default: 30s + master_timeout?: Duration /** * The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. * If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. * It can also be set to `-1` to indicate that the request should never timeout. * @server_default 30s */ - timeout?: Duration // default: 30s + timeout?: Duration } } diff --git a/specification/indices/remove_block/IndicesRemoveBlockRequest.ts b/specification/indices/remove_block/IndicesRemoveBlockRequest.ts index 027c3aa75d..8f990fbb5f 100644 --- a/specification/indices/remove_block/IndicesRemoveBlockRequest.ts +++ b/specification/indices/remove_block/IndicesRemoveBlockRequest.ts @@ -60,32 +60,32 @@ export interface Request extends RequestBase { * For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. * @server_default true */ - allow_no_indices?: boolean // default: true + allow_no_indices?: boolean /** * The type of index that wildcard patterns can match. * If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. * It supports comma-separated values, such as `open,hidden`. * @server_default open */ - expand_wildcards?: ExpandWildcards // default: open + expand_wildcards?: ExpandWildcards /** * If `false`, the request returns an error if it targets a missing or closed index. * @server_default false */ - ignore_unavailable?: boolean // default: false + ignore_unavailable?: boolean /** * The period to wait for the master node. * If the master node is not available before the timeout expires, the request fails and returns an error. * It can also be set to `-1` to indicate that the request should never timeout. * @server_default 30s */ - master_timeout?: Duration // default: 30s + master_timeout?: Duration /** * The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. * If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. * It can also be set to `-1` to indicate that the request should never timeout. * @server_default 30s */ - timeout?: Duration // default: 30s + timeout?: Duration } } diff --git a/specification/ml/_types/Datafeed.ts b/specification/ml/_types/Datafeed.ts index bed5f5ea35..a0288aa9e7 100644 --- a/specification/ml/_types/Datafeed.ts +++ b/specification/ml/_types/Datafeed.ts @@ -128,7 +128,7 @@ export class DelayedDataCheckConfig { * It defaults to null, which causes an appropriate `check_window` to be calculated when the real-time datafeed runs. * In particular, the default `check_window` span calculation is based on the maximum of `2h` or `8 * bucket_span`. */ - check_window?: Duration // default: null + check_window?: Duration /** * Specifies whether the datafeed periodically checks for delayed data. */ diff --git a/specification/snapshot/status/SnapshotStatusRequest.ts b/specification/snapshot/status/SnapshotStatusRequest.ts index 07c16b2e0a..1b17752bda 100644 --- a/specification/snapshot/status/SnapshotStatusRequest.ts +++ b/specification/snapshot/status/SnapshotStatusRequest.ts @@ -84,7 +84,7 @@ export interface Request extends RequestBase { * If `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned. * @server_default false */ - ignore_unavailable?: boolean // default: false + ignore_unavailable?: boolean /** * The period to wait for the master node. * If the master node is not available before the timeout expires, the request fails and returns an error.