Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/handlers/event/analyze_logs/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,13 @@ async fn outdated_launcher(log: &str, data: &Data) -> Result<Issue> {
};
let latest_version_parts = semver_split(&latest_version);

if log_version_parts.len() != 2
if log_version_parts.len() != 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would happen if the len is 2 as in 9.4?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If len is 2, then the branch is taken and the outdated message is shown

it's basically what's currently happening with 3, depite having the same numbers.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it'd say that it's outdated. which makes sense

|| log_version_parts[0] < latest_version_parts[0]
|| (log_version_parts[0] == latest_version_parts[0]
&& log_version_parts[1] < latest_version_parts[1])
|| (log_version_parts[0] == latest_version_parts[0]
&& log_version_parts[1] == latest_version_parts[1]
&& log_version_parts[2] < latest_version_parts[2])
{
let issue = if log_version_parts[0] < 8 {
(
Expand Down
Loading