Skip to content

Commit

Permalink
(ci) lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jun 4, 2024
1 parent 114e9e1 commit b11458d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:

- name: Install Tools
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func SetMSTeams() {
if f.msTeamsHook == "" {
return
}
// get hostname

hostname, _ := os.Hostname()
os.Setenv("APP_NAME", f.filePath)
os.Setenv("APP_ENV", hostname)
Expand Down
4 changes: 2 additions & 2 deletions pkg/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (w *Watcher) loadState() error {
if err != nil {
return err
}
fmt.Sscanf(lastLineStr, "%d", &w.lastLineNum)
fmt.Sscanf(lastLineStr, "%d", &w.lastLineNum) // nolint: errcheck

lastFileSizeStr, err := tx.Get(w.lastFileSizeKey)
if errors.Is(err, buntdb.ErrNotFound) {
Expand All @@ -152,7 +152,7 @@ func (w *Watcher) loadState() error {
if err != nil {
return err
}
fmt.Sscanf(lastFileSizeStr, "%d", &w.lastFileSize)
fmt.Sscanf(lastFileSizeStr, "%d", &w.lastFileSize) // nolint: errcheck
return nil
})
}
Expand Down

0 comments on commit b11458d

Please sign in to comment.