mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
98e708fa01
commit
e102ed0a6f
@ -57,8 +57,7 @@ export interface JsonApiConfig {
|
|||||||
export class JsonApi<D = JsonApiData, P extends JsonApiParams = JsonApiParams> {
|
export class JsonApi<D = JsonApiData, P extends JsonApiParams = JsonApiParams> {
|
||||||
static reqInitDefault: RequestInit = {
|
static reqInitDefault: RequestInit = {
|
||||||
headers: {
|
headers: {
|
||||||
"content-type": "application/json",
|
"content-type": "application/json"
|
||||||
"connection": "keep-alive"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -475,9 +475,6 @@ export class KubeApi<T extends KubeObject> {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
if (error?.type === "aborted") return; // AbortController rejects, we can ignore it
|
if (error?.type === "aborted") return; // AbortController rejects, we can ignore it
|
||||||
|
|
||||||
console.trace();
|
|
||||||
console.error(error);
|
|
||||||
|
|
||||||
callback(null, error);
|
callback(null, error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user