diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/NavigateCaretPositionAlgorithm.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/NavigateCaretPositionAlgorithm.cs index 9bff2b608..9baed75d1 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/NavigateCaretPositionAlgorithm.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/NavigateCaretPositionAlgorithm.cs @@ -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); } } diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/TypingCaretPositionAlgorithm.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/TypingCaretPositionAlgorithm.cs index 6ce0efd10..4d1efc81a 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/TypingCaretPositionAlgorithm.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/CaretPosition/Algorithms/TypingCaretPositionAlgorithm.cs @@ -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) {