From 3ff83f3d3dc21fbddb01174a6b74bf1fe3481480 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 6 Sep 2022 01:28:36 +0530 Subject: [PATCH] Add braces for if-else --- cypress/plugins/docker/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cypress/plugins/docker/index.ts b/cypress/plugins/docker/index.ts index 8a429b67..fe9c24ae 100644 --- a/cypress/plugins/docker/index.ts +++ b/cypress/plugins/docker/index.ts @@ -107,7 +107,9 @@ export function dockerStop(args: { "stop", args.containerId, ], err => { - if (err) reject(err); + if (err) { + reject(err); + } resolve(); }); }); @@ -121,7 +123,9 @@ export function dockerRm(args: { "rm", args.containerId, ], err => { - if (err) reject(err); + if (err) { + reject(err); + } resolve(); }); });