CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950)

This commit is contained in:
Ilya
2018-06-12 12:30:10 -07:00
committed by Dongbo Wang
parent 11a98c47fb
commit e177fcaef6
160 changed files with 765 additions and 777 deletions
@@ -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;