Skip to content

Commit 488c633

Browse files
Remove redundant code comments (#5596) (#5601)
(cherry picked from commit cca1aa9) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 70f31c6 commit 488c633

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

specification/indices/add_block/IndicesAddBlockRequest.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,32 @@ export interface Request extends RequestBase {
5959
* For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
6060
* @server_default true
6161
*/
62-
allow_no_indices?: boolean // default: true
62+
allow_no_indices?: boolean
6363
/**
6464
* The type of index that wildcard patterns can match.
6565
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
6666
* It supports comma-separated values, such as `open,hidden`.
6767
* @server_default open
6868
*/
69-
expand_wildcards?: ExpandWildcards // default: open
69+
expand_wildcards?: ExpandWildcards
7070
/**
7171
* If `false`, the request returns an error if it targets a missing or closed index.
7272
* @server_default false
7373
*/
74-
ignore_unavailable?: boolean // default: false
74+
ignore_unavailable?: boolean
7575
/**
7676
* The period to wait for the master node.
7777
* If the master node is not available before the timeout expires, the request fails and returns an error.
7878
* It can also be set to `-1` to indicate that the request should never timeout.
7979
* @server_default 30s
8080
*/
81-
master_timeout?: Duration // default: 30s
81+
master_timeout?: Duration
8282
/**
8383
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
8484
* 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.
8585
* It can also be set to `-1` to indicate that the request should never timeout.
8686
* @server_default 30s
8787
*/
88-
timeout?: Duration // default: 30s
88+
timeout?: Duration
8989
}
9090
}

specification/indices/remove_block/IndicesRemoveBlockRequest.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,32 +60,32 @@ export interface Request extends RequestBase {
6060
* For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
6161
* @server_default true
6262
*/
63-
allow_no_indices?: boolean // default: true
63+
allow_no_indices?: boolean
6464
/**
6565
* The type of index that wildcard patterns can match.
6666
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
6767
* It supports comma-separated values, such as `open,hidden`.
6868
* @server_default open
6969
*/
70-
expand_wildcards?: ExpandWildcards // default: open
70+
expand_wildcards?: ExpandWildcards
7171
/**
7272
* If `false`, the request returns an error if it targets a missing or closed index.
7373
* @server_default false
7474
*/
75-
ignore_unavailable?: boolean // default: false
75+
ignore_unavailable?: boolean
7676
/**
7777
* The period to wait for the master node.
7878
* If the master node is not available before the timeout expires, the request fails and returns an error.
7979
* It can also be set to `-1` to indicate that the request should never timeout.
8080
* @server_default 30s
8181
*/
82-
master_timeout?: Duration // default: 30s
82+
master_timeout?: Duration
8383
/**
8484
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
8585
* 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.
8686
* It can also be set to `-1` to indicate that the request should never timeout.
8787
* @server_default 30s
8888
*/
89-
timeout?: Duration // default: 30s
89+
timeout?: Duration
9090
}
9191
}

specification/ml/_types/Datafeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class DelayedDataCheckConfig {
128128
* It defaults to null, which causes an appropriate `check_window` to be calculated when the real-time datafeed runs.
129129
* In particular, the default `check_window` span calculation is based on the maximum of `2h` or `8 * bucket_span`.
130130
*/
131-
check_window?: Duration // default: null
131+
check_window?: Duration
132132
/**
133133
* Specifies whether the datafeed periodically checks for delayed data.
134134
*/

specification/snapshot/status/SnapshotStatusRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface Request extends RequestBase {
8484
* If `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned.
8585
* @server_default false
8686
*/
87-
ignore_unavailable?: boolean // default: false
87+
ignore_unavailable?: boolean
8888
/**
8989
* The period to wait for the master node.
9090
* If the master node is not available before the timeout expires, the request fails and returns an error.

0 commit comments

Comments
 (0)