Skip to content

Commit

Permalink
chore: Ignore linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Aug 29, 2024
1 parent 630818c commit 00dc5da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/datastore/sqlite_add_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func upsertFeed(

if err == nil {
lid, ierr := res.LastInsertId()
feedID = ID(lid)
feedID = ID(lid) // #nosec: G115
if ierr != nil {
return feedID, added, ierr
}
Expand Down
2 changes: 1 addition & 1 deletion internal/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func ToFeedID(raw string) (ID, error) {
if err != nil {
return 0, FeedNotFoundError{ID: raw}
}
return ID(id), nil
return ID(id), nil // #nosec: G115
}

func ToFeedIDs(raw []string) ([]ID, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ func (svc *service) ImportOPML(
}

rsp := api.ImportOPMLResponse{
NumProcessed: uint32(nproc),
NumImported: uint32(nimp),
NumProcessed: uint32(nproc), // #nosec: G115
NumImported: uint32(nimp), // #nosec: G115
}

return &rsp, nil
Expand Down

0 comments on commit 00dc5da

Please sign in to comment.