Skip to content

Commit

Permalink
Optimize linkwarden_web_url concatenation
Browse files Browse the repository at this point in the history
Improved the readability of the URL construction logic in the linkwarden
role defaults by removing excess whitespace. This change ensures that
the web URL is generated cleanly when the subdomain is present. No
functionality is altered, just a cosmetic fix that enhances code
maintainability.
  • Loading branch information
RaneyDazed committed Jan 30, 2024
1 parent 169772d commit bdcf8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/linkwarden/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ linkwarden_paths_folders_list:
linkwarden_web_subdomain: "{{ linkwarden_name }}"
linkwarden_web_domain: "{{ user.domain }}"
linkwarden_web_port: "3000"
linkwarden_web_url: "{{ 'https://' + (linkwarden_web_subdomain + '.' + linkwarden_web_domain
linkwarden_web_url: "{{ 'https://' + (linkwarden_web_subdomain + '.' + linkwarden_web_domain
if (linkwarden_web_subdomain | length > 0)
else linkwarden_web_domain) }}"

Expand Down

0 comments on commit bdcf8ff

Please sign in to comment.