MCPcopy
hub / github.com/gitify-app/gitify / increaseVolume

Function increaseVolume

src/renderer/utils/ui/volume.ts:57–63  ·  view source on GitHub ↗
(volume: Percentage)

Source from the content-addressed store, hash-verified

55 * @returns The new volume percentage after increasing, or `100` if already at maximum.
56 */
57export function increaseVolume(volume: Percentage): Percentage {
58 if (canIncreaseVolume(volume)) {
59 return (volume + VOLUME_STEP) as Percentage;
60 }
61
62 return MAXIMUM_VOLUME_PERCENTAGE;
63}

Callers 2

SystemSettingsFunction · 0.90
volume.test.tsFile · 0.90

Calls 1

canIncreaseVolumeFunction · 0.85

Tested by

no test coverage detected