main.ts: fixup logic to ensure only one installer url override is set #44

Merged
colemickens merged 1 commit from fixup-nix-url-check into main 2023-10-18 17:24:39 +00:00
colemickens commented 2023-10-18 14:39:11 +00:00 (Migrated from github.com)
Description
  • the use of else if would have made the "counting" of the url modifiers useless, so switch them to ifs.
  • correspondingly, update the fallthrough else condition to set the URL if no modifiers were passed to override it
Checklist
  • Tested changes against a test repository
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)
##### Description * the use of `else if` would have made the "counting" of the url modifiers useless, so switch them to ifs. * correspondingly, update the fallthrough `else` condition to set the URL if no modifiers were passed to override it ##### Checklist - [x] Tested changes against a test repository - [ ] Added or updated relevant documentation (leave unchecked if not applicable) - [ ] (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)
Hoverbear (Migrated from github.com) approved these changes 2023-10-18 17:24:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-install-action#44
No description provided.