make sure to borrow in getters
This commit is contained in:
parent
29ed728fc1
commit
1ff95de3bf
9 changed files with 23 additions and 24 deletions
|
@ -195,7 +195,7 @@ async fn outdated_launcher(log: &str, data: &Data) -> Result<Issue> {
|
|||
let version_from_log = captures[0].replace("Prism Launcher version: ", "");
|
||||
|
||||
let latest_version = if let Some(storage) = &data.storage {
|
||||
if let Ok(version) = storage.get_launcher_version().await {
|
||||
if let Ok(version) = storage.launcher_version().await {
|
||||
version
|
||||
} else {
|
||||
api::github::get_latest_prism_version().await?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue