no more object.assign

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-02-10 17:00:32 +02:00
1 parent e7943ce05f
commit 819b404fc0
1 file changed
+4 -1
+4 -1
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 || "";
}
}