Skip to content

Commit

Permalink
Merge pull request #3 from bavix/fix-path
Browse files Browse the repository at this point in the history
api path fix
  • Loading branch information
rez1dent3 authored Jul 21, 2024
2 parents 080a4e1 + b784cf2 commit 75fb043
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 23 deletions.
7 changes: 0 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ run:
linters:
enable-all: true
disable:
# turn on later
- godox
# deprecated
- gomnd
- execinquery
# not relevant
- varnamelen
- wrapcheck
- paralleltest
- exhaustruct
linters-settings:
lll:
line-length: 140
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version: v2
modules:
- path: api/
- path: .
14 changes: 0 additions & 14 deletions changelog.md

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/uuidconv/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// - high: the high part of the UUID as a 64-bit integer.
// - low: the low part of the UUID as a 64-bit integer.
//
//nolint:mnd
//nolint:mnd,varnamelen
func UUID2DoubleInt(v uuid.UUID) (int64, int64) {
// Extract the bytes of the UUID and concatenate them to form the high and low integers.
high := int64(v[0]) | int64(v[1])<<8 | int64(v[2])<<16 | int64(v[3])<<24 |
Expand Down
2 changes: 2 additions & 0 deletions pkg/uuidconv/uuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type UUIDTestSuite struct {
// The function calls the Run method of the Suite struct from the testify package
// to run the tests for the UUIDTestSuite.
func TestUuidTestSuite(t *testing.T) {
t.Parallel()

suite.Run(t, new(UUIDTestSuite))
}

Expand Down

0 comments on commit 75fb043

Please sign in to comment.