code improvement

This commit is contained in:
Chayapak 2023-08-19 12:43:04 +07:00
parent 4ec907cbce
commit 5cbeeefe6f

View file

@ -152,7 +152,7 @@ public class NBSConverter {
}
}
Song song = new Song(songName.trim().length() > 0 ? songName : fileName, bot, songName, songAuthor, songOriginalAuthor, songDescription, true);
Song song = new Song(!songName.isBlank() ? songName : fileName, bot, songName, songAuthor, songOriginalAuthor, songDescription, true);
if (loop > 0) {
song.loopPosition = getMilliTime(loopStartTick, tempo);
// song.loopCount = maxLoopCount;