Skip to content

Commit

Permalink
Update output.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 26, 2024
1 parent 7927386 commit 650ba71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.zig
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub const Source = struct {
}

pub fn isForceColor() bool {
return getForceColorDepth() != null;
return (getForceColorDepth() orelse ColorDepth.none) != .none;
}

pub fn isColorTerminal() bool {
Expand Down

0 comments on commit 650ba71

Please sign in to comment.