1
0
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:
Jari Kolehmainen 2021-02-10 17:00:32 +02:00
parent e7943ce05f
commit 819b404fc0

View File

@ -56,7 +56,10 @@ export class KubeStatus {
public readonly reason: string;
constructor(data: IKubeStatus) {
Object.assign(this, data);
this.apiVersion = data.apiVersion;
this.code = data.code;
this.message = data.message || "";
this.reason = data.reason || "";
}
}