Playlist: fix bad try statement.

soundboard
Nekojimi 8 months ago
parent 2bc9cac661
commit 4a5c0d41c9
  1. 8
      src/main/java/moe/nekojimi/chords/Playlist.java

@ -62,13 +62,7 @@ public class Playlist implements Consumer<Track>
YamlSequence trackList = yaml.value("tracks").asSequence();
for (int i = 0; i < trackList.size(); i++)
{
try
{
ret.addTrack(Track.fromYaml(trackList.yamlMapping(i)));
} catch (MalformedURLException ex)
{
Logger.getLogger(Playlist.class.getName()).log(Level.SEVERE, null, ex);
}
ret.addTrack(Track.fromYaml(trackList.yamlMapping(i)));
}
return ret;
}

Loading…
Cancel
Save