Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Mar 13, 2024
1 parent 6c9fd30 commit b8fde83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/db/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pub async fn search_position(

if let Some(position_query) = &query.position {
if position_query.can_reach(&end_material, *end_pawn_home as u16) {
if let Ok(Some(m)) = get_move_after_match(game, fen, &position_query) {
if let Ok(Some(m)) = get_move_after_match(game, fen, position_query) {
if sample_games.lock().unwrap().len() < 10 {
sample_games.lock().unwrap().push(*id);
}
Expand Down
2 changes: 2 additions & 0 deletions src/utils/repertoire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export async function openingReport({
path: referenceDb,
type: "exact",
fen: item.node.fen,
color: "white",
player: null,
},
"opening",
);
Expand Down

0 comments on commit b8fde83

Please sign in to comment.