Skip to content

Commit

Permalink
Remove redundant return from parsers.blockRuleset()
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Mar 21, 2024
1 parent 53f84f0 commit 9a34d5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/less/src/less/parser/parser.js
Expand Up @@ -1478,11 +1478,9 @@ const Parser = function Parser(context, imports, fileInfo, currentIndex) {

blockRuleset: function() {
let block = this.block();

if (block) {
block = new tree.Ruleset(null, block);
return new tree.Ruleset(null, block);
}
return block;
},

detachedRuleset: function() {
Expand Down Expand Up @@ -2491,4 +2489,4 @@ Parser.serializeVars = vars => {
return s;
};

export default Parser;
export default Parser;

0 comments on commit 9a34d5c

Please sign in to comment.