Skip to content

Commit

Permalink
chore: import packages only once (#818)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
Co-authored-by: Liza Tsibur <liza@activecountermeasures.com>
  • Loading branch information
testwill and lisaSW authored Jan 3, 2024
1 parent 08556b1 commit 423287f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser/files/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
log "github.com/sirupsen/logrus"

"github.com/activecm/rita/config"
"github.com/activecm/rita/parser/parsetypes"
pt "github.com/activecm/rita/parser/parsetypes"
)

Expand Down Expand Up @@ -93,7 +92,7 @@ func newIndexedFile(filePath string, targetDB string, targetCID int,
}

//parse first line
var line parsetypes.BroData
var line pt.BroData
if toReturn.IsJSON() {
line = ParseJSONLine(scanner.Bytes(), broDataFactory, logger)
} else {
Expand Down

0 comments on commit 423287f

Please sign in to comment.