Skip to content

Commit

Permalink
use body expression instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 3, 2021
1 parent aff8f05 commit 08f5513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public override NavigateCaretPosition MoveToLast()
return new NavigateCaretPosition(lyric);
}

public override NavigateCaretPosition MoveToTarget(Lyric lyric)
{
return new NavigateCaretPosition(lyric);
}
public override NavigateCaretPosition MoveToTarget(Lyric lyric) => new(lyric);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ public override TextCaretPosition MoveToLast()
return new TextCaretPosition(lyric, GetMaxIndex(lyric.Text));
}

public override TextCaretPosition MoveToTarget(Lyric lyric)
{
return new TextCaretPosition(lyric, GetMinIndex(lyric.Text));
}
public override TextCaretPosition MoveToTarget(Lyric lyric) => new(lyric, GetMinIndex(lyric.Text));

private bool lyricMovable(Lyric lyric)
{
Expand Down

0 comments on commit 08f5513

Please sign in to comment.