We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5340328 commit 913a021Copy full SHA for 913a021
src/cp.ts
@@ -66,10 +66,12 @@ export class Cp {
66
}
67
},
68
)
69
+ .then((conn) => {
70
+ conn.onclose = (event) => {
71
+ resolve();
72
+ };
73
+ })
74
.catch(reject);
- conn.onclose = (event) => {
- resolve();
- };
75
});
76
77
@@ -95,7 +97,7 @@ export class Cp {
95
97
const readStream = fs.createReadStream(tmpFileName);
96
98
const errStream = new WritableStreamBuffer();
99
return new Promise<void>((resolve, reject) => {
- const conn = await this.execInstance
100
+ this.execInstance
101
.exec(
102
namespace,
103
podName,
@@ -118,10 +120,12 @@ export class Cp {
118
120
119
121
122
123
124
125
126
127
128
129
130
131
0 commit comments