Skip to content

Commit

Permalink
fix: gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase committed Dec 18, 2024
1 parent 1f21a18 commit 66c0854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
- nlreturn # Not desired
- godox # Yes. The project is in progress
- gochecknoglobals
- gosec
- nonamedreturns
- paralleltest
- predeclared
Expand Down
2 changes: 1 addition & 1 deletion cmd/monitor/page_processes_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (m *modelProcessesMain) getSelectedPid() (int32, error) {
if row == nil {
return 0, errEmptyTable
}
pid, err := strconv.ParseInt(row[0], 10, 64)
pid, err := strconv.ParseInt(row[0], 10, 32)
return int32(pid), err
}

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func main() {
}
go receiveMessages(sub)

for idx := range 100 {
for idx := range int32(100) {
// Check if program has been requested to stop
if !ecal.Ok() {
logging.Warn("eCAL.Ok() is false; shutting down")
Expand All @@ -82,7 +82,7 @@ func main() {
logging.Info("Sending message ", idx)

// Update message to send
person.Id = int32(idx)
person.Id = idx

// Serialize and send protobuf message
if err := pub.Send(person); err != nil {
Expand Down

0 comments on commit 66c0854

Please sign in to comment.