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 bfee0f4 commit c7b2646
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions detect/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ func (d *Detector) detectRule(fragment Fragment, rule config.Rule) []report.Find
loc.endLineIndex = matchIndex[1]
}

var full_fragment;
if( len(fragment.Raw) > 250 )
{
var full_fragment

Check failure on line 274 in detect/detect.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected newline, expecting type
if( len(fragment.Raw) > 250 ){
full_fragment = strings.TrimSpace(fragment.Raw[0:250])
}else{
full_fragment = strings.TrimSpace(fragment.Raw[0:])
Expand Down

0 comments on commit c7b2646

Please sign in to comment.