Skip to content

Commit

Permalink
Correção na assinatura default dos métodos de escrita de "false" para…
Browse files Browse the repository at this point in the history
… "null"
  • Loading branch information
orochasamuel committed Sep 16, 2023
1 parent a269646 commit fe75afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FiscalBr.Common/Sped/ArquivoSpedV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,12 @@ public virtual void EscreverArquivo(string caminho, Encoding encoding = null)
File.WriteAllLines(caminho, Linhas.ToArray(), encoding ?? Encoding.Default);
}

private void EscreverEAdicionarNasLinhas(IRegistroSped reg, DateTime? competencia = null, bool? removerQuebraLinha = false)
private void EscreverEAdicionarNasLinhas(IRegistroSped reg, DateTime? competencia = null, bool? removerQuebraLinha = null)
{
Linhas.Add(EscreverLinha(reg, competencia, removerQuebraLinha));
}

public virtual string EscreverLinha(IRegistroSped reg, DateTime? competencia = null, bool? removerQuebraLinha = false)
public virtual string EscreverLinha(IRegistroSped reg, DateTime? competencia = null, bool? removerQuebraLinha = null)
{
var type = reg.GetType();

Expand Down Expand Up @@ -462,7 +462,7 @@ public virtual string EscreverLinha(IRegistroSped reg, DateTime? competencia = n
return removerQuebraLinha.HasValue ? sb.ToString().Trim() : sb.ToString();
}

public virtual string[] EscreverLinhas(List<IRegistroSped> regs, DateTime? competencia = null, bool? removerQuebraLinha = false)
public virtual string[] EscreverLinhas(List<IRegistroSped> regs, DateTime? competencia = null, bool? removerQuebraLinha = null)
{
List<string> list = new List<string>();

Expand Down

0 comments on commit fe75afb

Please sign in to comment.