mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-16 13:48:26 +00:00
only specify branch if it's none
This commit is contained in:
parent
7d353c9f17
commit
fe1dd03732
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ pub(crate) fn resolve_template_and_branch(
|
|||
if template.is_none() {
|
||||
use crate::dx_build_info::{PKG_VERSION_MAJOR, PKG_VERSION_MINOR};
|
||||
*template = Some(DEFAULT_TEMPLATE.to_string());
|
||||
*branch = Some(format!("v{PKG_VERSION_MAJOR}.{PKG_VERSION_MINOR}"));
|
||||
|
||||
if branch.is_none() {
|
||||
*branch = Some(format!("v{PKG_VERSION_MAJOR}.{PKG_VERSION_MINOR}"));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue