From 8df4084fac5a8e2062b835ba62f4d57625322af2 Mon Sep 17 00:00:00 2001 From: HelloCore Date: Tue, 3 Oct 2023 22:47:21 +0700 Subject: [PATCH] chore: remove log --- packages/danger_core/lib/src/danger_utils.dart | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/danger_core/lib/src/danger_utils.dart b/packages/danger_core/lib/src/danger_utils.dart index 3f3e417..fa582d9 100644 --- a/packages/danger_core/lib/src/danger_utils.dart +++ b/packages/danger_core/lib/src/danger_utils.dart @@ -10,13 +10,6 @@ class DangerUtils { static Future spawn(String command, {List arguments = const []}) async { final result = await Process.run(command, arguments, runInShell: true); - print("======="); - print('Exit code ${result.exitCode}'); - print('stderr:'); - print(result.stderr); - print('stdout:'); - print(result.stdout); - print("======="); return result.stdout.toString().trim(); } @@ -26,8 +19,7 @@ class DangerUtils { base = getTargetBranch(); } - final data = - await DangerUtils.spawn('git', arguments: ['fetch', 'origin', base]); + await DangerUtils.spawn('git', arguments: ['fetch', 'origin', base]); } /// Get PR target branch based on git provider