mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add braces for if-else
This commit is contained in:
parent
2d1e8f10b7
commit
3ff83f3d3d
@ -107,7 +107,9 @@ export function dockerStop(args: {
|
|||||||
"stop",
|
"stop",
|
||||||
args.containerId,
|
args.containerId,
|
||||||
], err => {
|
], err => {
|
||||||
if (err) reject(err);
|
if (err) {
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -121,7 +123,9 @@ export function dockerRm(args: {
|
|||||||
"rm",
|
"rm",
|
||||||
args.containerId,
|
args.containerId,
|
||||||
], err => {
|
], err => {
|
||||||
if (err) reject(err);
|
if (err) {
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user