From f7f7dc16e973b4b90e5c5e9f3d53d635e660bb8b Mon Sep 17 00:00:00 2001 From: leedongmyung Date: Tue, 2 Jan 2024 14:53:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/oto/commands/util/jira.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oto/commands/util/jira.dart b/lib/oto/commands/util/jira.dart index e3d7aaa..1378072 100644 --- a/lib/oto/commands/util/jira.dart +++ b/lib/oto/commands/util/jira.dart @@ -45,9 +45,9 @@ class Jira extends Command { var summary = issue.fields?.summary; if((arr != null && arr.isNotEmpty) || summary != null) { var content = ''; - try { + if(arr != null && arr.isNotEmpty) { content = arr!.first.content!.first.text!; - } on Exception catch (e) { + } else { content = summary!; } var browseUrl = 'https://${data.domain}/browse/${data.issue}';