mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
no more object.assign
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
e7943ce05f
commit
819b404fc0
@ -56,7 +56,10 @@ export class KubeStatus {
|
|||||||
public readonly reason: string;
|
public readonly reason: string;
|
||||||
|
|
||||||
constructor(data: IKubeStatus) {
|
constructor(data: IKubeStatus) {
|
||||||
Object.assign(this, data);
|
this.apiVersion = data.apiVersion;
|
||||||
|
this.code = data.code;
|
||||||
|
this.message = data.message || "";
|
||||||
|
this.reason = data.reason || "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user