mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950)
This commit is contained in:
@@ -1172,7 +1172,7 @@ namespace System.Management.Automation.Language
|
||||
_currentBlock.FlowsTo(breakBlock);
|
||||
}
|
||||
|
||||
_loopTargets.Add(new LoopGotoTargets(loopLabel ?? "", breakBlock, continueBlock));
|
||||
_loopTargets.Add(new LoopGotoTargets(loopLabel ?? string.Empty, breakBlock, continueBlock));
|
||||
_currentBlock.FlowsTo(bodyBlock);
|
||||
_currentBlock = bodyBlock;
|
||||
generateLoopBody();
|
||||
@@ -1202,7 +1202,7 @@ namespace System.Management.Automation.Language
|
||||
var breakBlock = new Block();
|
||||
var gotoRepeatTargetBlock = new Block();
|
||||
|
||||
_loopTargets.Add(new LoopGotoTargets(loopStatement.Label ?? "", breakBlock, continueBlock));
|
||||
_loopTargets.Add(new LoopGotoTargets(loopStatement.Label ?? string.Empty, breakBlock, continueBlock));
|
||||
|
||||
_currentBlock.FlowsTo(bodyBlock);
|
||||
_currentBlock = bodyBlock;
|
||||
|
||||
Reference in New Issue
Block a user