diff options
author | Aurélien LAJOIE <orel@melix.net> | 2021-10-15 17:57:03 +0200 |
---|---|---|
committer | Aurélien LAJOIE <orel@melix.net> | 2021-10-15 18:05:51 +0200 |
commit | 9c36f8acb53bb50ce54eedcd4eb9fcacdba821fd (patch) | |
tree | aa0283ecdfb0644a7b8454052111e2d220291b24 /jira-widget | |
parent | 173ef2fab3997fabbc3b93a7df6798a9bd4c6f25 (diff) |
jira: Fix warnings
Diffstat (limited to 'jira-widget')
-rw-r--r-- | jira-widget/jira.lua | 9 |
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 |