Remove redundant announce calls from MusicRoutes
This commit is contained in:
1 parent
c2a24f0133
commit
88389f3db0
1 file changed
-2
@@ -259,7 +259,6 @@ public final class MusicRoutes {
|
||||
int newVolume = volume(ctx);
|
||||
|
||||
manager.setVolume(newVolume);
|
||||
announce(manager, "Setting volume to " + newVolume);
|
||||
ctx.json(Map.of("status", "ok", "volume", newVolume));
|
||||
}
|
||||
|
||||
@@ -599,7 +598,6 @@ public final class MusicRoutes {
|
||||
throw new BadRequestResponse(result.getMessage());
|
||||
}
|
||||
|
||||
announce(manager, result.getMessage());
|
||||
ctx.json(resultBodyWithQueue(result, manager));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user