Skip to content

Commit

Permalink
Validate number of lookup points
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jul 25, 2024
1 parent 984f0e9 commit c2e2d62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/args_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,8 @@ pub fn parse_lookup_table(input_string: &str) -> Option<Vec<Vec2>> {
});
}
}
if parsed_points.len() < 2 {
return None;
}
return Some(parsed_points);
}

0 comments on commit c2e2d62

Please sign in to comment.