Skip to content

Commit

Permalink
go syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
willem-delbare committed Jan 13, 2024
1 parent c7b2646 commit ba01b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (d *Detector) detectRule(fragment Fragment, rule config.Rule) []report.Find
loc.endLineIndex = matchIndex[1]
}

var full_fragment
full_fragment := ""
if( len(fragment.Raw) > 250 ){
full_fragment = strings.TrimSpace(fragment.Raw[0:250])
}else{
Expand Down

0 comments on commit ba01b72

Please sign in to comment.