Ignore emtpy strings when renaming resources in code
This commit is contained in:
parent
c668dbdf87
commit
062ecaaef2
|
@ -127,6 +127,8 @@ namespace de4dot.renamer {
|
||||||
if (instr.OpCode != OpCodes.Ldstr)
|
if (instr.OpCode != OpCodes.Ldstr)
|
||||||
continue;
|
continue;
|
||||||
var s = (string)instr.Operand;
|
var s = (string)instr.Operand;
|
||||||
|
if (string.IsNullOrEmpty(s))
|
||||||
|
continue; // Ignore emtpy strings since we'll get lots of false warnings
|
||||||
|
|
||||||
string newName = null;
|
string newName = null;
|
||||||
string oldName = null;
|
string oldName = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user