Skip to content

Commit e4bb47b

Browse files
committed
refactor: melhorar legibilidade de código
1 parent 8eefeab commit e4bb47b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

NFe.Servicos/ServicosNFe.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ private RetornoRecepcaoEvento RecepcaoEvento(int idlote, List<evento> eventos, S
498498
foreach (var evento in pedEvento.evento)
499499
{
500500
var detEvento = evento.infEvento.detEvento;
501-
var detEventoXml = _cFgServico.RemoverAcentos
502-
? FuncoesXml.ClasseParaXmlString(detEvento).RemoverAcentos()
503-
: FuncoesXml.ClasseParaXmlString(detEvento);
501+
var detEventoXml = FuncoesXml.ClasseParaXmlString(detEvento);
502+
if (_cFgServico.RemoverAcentos)
503+
detEventoXml = detEventoXml.RemoverAcentos();
504504

505505
const string namespaceNfe = "http://www.portalfiscal.inf.br/nfe";
506506
detEventoXml = FuncoesXml.ObterXmlComNamespace(detEventoXml, namespaceNfe);

0 commit comments

Comments
 (0)