diff options
Diffstat (limited to 'jira-widget/jira.lua')
-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 |