From 1fc019257c7dd7898caab558fd57830f40bb3393 Mon Sep 17 00:00:00 2001 From: leedongmyung Date: Tue, 2 Jan 2024 14:44:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A8=ED=85=90=EC=B8=A0=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=20=EC=97=86=EC=9D=84=EA=B2=BD=EC=9A=B0=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/oto/commands/util/jira.dart b/lib/oto/commands/util/jira.dart index e7f7c27..e3d7aaa 100644 --- a/lib/oto/commands/util/jira.dart +++ b/lib/oto/commands/util/jira.dart @@ -45,12 +45,9 @@ class Jira extends Command { var summary = issue.fields?.summary; if((arr != null && arr.isNotEmpty) || summary != null) { var content = ''; - if(arr != null) - { - content = arr.first.content!.first.text!; - } - else - { + try { + content = arr!.first.content!.first.text!; + } on Exception catch (e) { content = summary!; } var browseUrl = 'https://${data.domain}/browse/${data.issue}';