File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -760,18 +760,17 @@ namespace Sass {
760
760
Signature unquote_sig = " unquote($string)" ;
761
761
BUILT_IN (sass_unquote)
762
762
{
763
- if (dynamic_cast <Null*>(env[" $string" ])) {
763
+ AST_Node* arg = env[" $string" ];
764
+ if (dynamic_cast <Null*>(arg)) {
764
765
return new (ctx.mem ) Null (pstate);
765
766
}
766
-
767
- To_String to_string (&ctx);
768
- AST_Node* arg = env[" $string" ];
769
- if (String_Quoted* string_quoted = dynamic_cast <String_Quoted*>(arg)) {
767
+ else if (String_Quoted* string_quoted = dynamic_cast <String_Quoted*>(arg)) {
770
768
String_Constant* result = new (ctx.mem ) String_Constant (pstate, string_quoted->value ());
771
769
// remember if the string was quoted (color tokens)
772
770
result->sass_fix_1291 (string_quoted->quote_mark () != 0 );
773
771
return result;
774
772
}
773
+ To_String to_string (&ctx);
775
774
return new (ctx.mem ) String_Constant (pstate, string (arg->perform (&to_string)));
776
775
}
777
776
You can’t perform that action at this time.
0 commit comments