Skip to content

Commit

Permalink
qp: fix linter warnings 🤓
Browse files Browse the repository at this point in the history
  • Loading branch information
xojigsx committed Sep 3, 2023
1 parent 2accaec commit 69847dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ type builder struct {
dialects dialects
fields []string
table string
prefix string
}

func newBuilder[T any](m *reflectx.Mapper, table string) *builder {
Expand Down Expand Up @@ -106,11 +105,11 @@ func (b *builder) query(driver, name string, args ...any) (*query, error) {

h := sha256.New()

io.WriteString(h, driver)
io.WriteString(h, name)
_, _ = io.WriteString(h, driver)
_, _ = io.WriteString(h, name)

for _, col := range columns {
io.WriteString(h, col)
_, _ = io.WriteString(h, col)
}

p := h.Sum(nil)
Expand Down

0 comments on commit 69847dc

Please sign in to comment.