mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-29 13:00:32 +00:00
Remove error, in favor of early return/comment
This commit is contained in:
parent
76b85df82e
commit
9a7861d054
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ export default (media: Media) => (store: MiddlewareStore) => {
|
|||
media.on("fileLoaded", () => {
|
||||
const id = getCurrentTrackId(store.getState());
|
||||
if (id == null) {
|
||||
throw new Error("WAT");
|
||||
// Attempted to set the metadata for a track that was already removed.
|
||||
// Really, the media should have been stopped when the track was removed.
|
||||
return;
|
||||
}
|
||||
store.dispatch({
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue