Skip to content

Commit

Permalink
Fix more cases where channel names were being case-normalized (#2229)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 26, 2024
1 parent 7863d0c commit 09fd9c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/value/color.dart
Expand Up @@ -566,7 +566,6 @@ class SassColor extends Value {
/// for this color and [channelName] is the argument name for [channel]
/// (without the `$`). These are used for error reporting.
double channel(String channel, {String? colorName, String? channelName}) {
channel = channel.toLowerCase();
var channels = space.channels;
if (channel == channels[0].name) return channel0;
if (channel == channels[1].name) return channel1;
Expand All @@ -586,7 +585,6 @@ class SassColor extends Value {
/// (without the `$`). These are used for error reporting.
bool isChannelMissing(String channel,
{String? colorName, String? channelName}) {
channel = channel.toLowerCase();
var channels = space.channels;
if (channel == channels[0].name) return isChannel0Missing;
if (channel == channels[1].name) return isChannel1Missing;
Expand All @@ -606,7 +604,6 @@ class SassColor extends Value {
/// (without the `$`). These are used for error reporting.
bool isChannelPowerless(String channel,
{String? colorName, String? channelName}) {
channel = channel.toLowerCase();
var channels = space.channels;
if (channel == channels[0].name) return isChannel0Powerless;
if (channel == channels[1].name) return isChannel1Powerless;
Expand Down Expand Up @@ -767,7 +764,7 @@ class SassColor extends Value {
}

for (var entry in newValues.entries) {
var channel = entry.key.toLowerCase();
var channel = entry.key;
if (channel == channels[0].name) {
setChannel0(entry.value);
} else if (channel == channels[1].name) {
Expand Down

0 comments on commit 09fd9c2

Please sign in to comment.