audio_wavefiles icon indicating copy to clipboard operation
audio_wavefiles copied to clipboard

Simplify boolean expression

Open pjljvandelaar opened this issue 3 years ago • 0 comments

Why not replace https://github.com/Ada-Audio/audio_wavefiles/blob/8e1162c5b9dc604a835f60be6a78e8f9d3c85052/src/audio-wavefiles.adb#L50-L52 with

   function No_Errors (WF : in out Wavefile) return Boolean is
     (for all Error of WF.Errors => not Error);

Problem detected and solved by Rejuvenation-Ada crate vote for Rejuvenation-Ada as The 2022 Ada Crate Of The Year

pjljvandelaar avatar Nov 30 '22 08:11 pjljvandelaar