Skip to content

Commit

Permalink
colorspace: add missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Oct 14, 2024
1 parent 623dbbb commit 1de2258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/colorspace.zig
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ pub const Hsl = struct {

/// Converts the Hsl color into a CIE 1931 XYZ color.
pub fn toXyz(self: Hsl) Xyz {
self.toRgb().toXyz();
return self.toRgb().toXyz();
}

/// Converts the HSL color into a CIELAB color.
Expand Down Expand Up @@ -498,7 +498,7 @@ pub const Hsv = struct {

/// Converts the HSV color into a CIE 1931 XYZ color.
pub fn toXyz(self: Hsv) Xyz {
self.toRgb().toXyz();
return self.toRgb().toXyz();
}

/// Converts the HSV color into a CIELAB color.
Expand Down

0 comments on commit 1de2258

Please sign in to comment.