summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2021-10-18 15:34:16 -0400
committerGitHub <noreply@github.com>2021-10-18 15:34:16 -0400
commit61b3fa2c8768906c6a01bd292a64f671e60e9f0c (patch)
treeaa0283ecdfb0644a7b8454052111e2d220291b24
parent173ef2fab3997fabbc3b93a7df6798a9bd4c6f25 (diff)
parent9c36f8acb53bb50ce54eedcd4eb9fcacdba821fd (diff)
Merge pull request #305 from utix/fixwarnings
jira: Fix warnings
-rw-r--r--jira-widget/jira.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua
index 45c632e..f34e951 100644
--- a/jira-widget/jira.lua
+++ b/jira-widget/jira.lua
@@ -168,12 +168,11 @@ local function worker(user_args)
local cur_status = ''
for _, issue in ipairs(result.issues) do
- local path_to_avatar = HOME_DIR ..'/.cache/awmw/jira-widget/avatars/' .. issue.fields.assignee.name or issue.fields.assignee.displayName
- local name = ''
+ local name
if issue.fields.assignee.name == nil then
- name = issue.fields.assignee.displayName
- else
- name = issue.fields.assignee.name
+ name = issue.fields.assignee.displayName
+ else
+ name = issue.fields.assignee.name
end
local path_to_avatar = HOME_DIR ..'/.cache/awmw/jira-widget/avatars/' .. name