Skip to content

Commit 3473de4

Browse files
author
fillol
committed
bug fix on CNJWrite
1 parent 5ce1bf3 commit 3473de4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cnj_validate.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package CNJ_Validate
22

33
import (
44
"errors"
5-
"fmt"
65
"github.com/Darklabel91/CNJ_Validate/Error"
76
"github.com/Darklabel91/CNJ_Validate/Functions"
87
"github.com/Darklabel91/CNJ_Validate/Structs"
@@ -53,7 +52,7 @@ func AnalyzeCNJ(cnj string) (Structs.AnalysisCNJ, error) {
5352

5453
func CNJWrite(number Structs.AnalysisCNJ) string {
5554
var preposition string
56-
var text
55+
var text string
5756

5857
lawsuit := number.Detailed.LawsuitNumber
5958
year := number.Detailed.ProtocolYear
@@ -73,6 +72,6 @@ func CNJWrite(number Structs.AnalysisCNJ) string {
7372
preposition = "da"
7473
}
7574

76-
text := "Processo número: " + lawsuit + ", ajuizado no ano de " + year + ", pertencente ao segmento " + preposition + " " + segment1 + " (" + segment2 + "), tendo como unidade de origem: " + sourceU1 + ": " + sourceU2 + " | " + ct1 + ": " + ct2
75+
text = "Processo número: " + lawsuit + ", ajuizado no ano de " + year + ", pertencente ao segmento " + preposition + " " + segment1 + " (" + segment2 + "), tendo como unidade de origem: " + sourceU1 + ": " + sourceU2 + " | " + ct1 + ": " + ct2
7776
return text
7877
}

0 commit comments

Comments
 (0)