Skip to content

Commit

Permalink
Tidy up and gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
voltgizerz committed Jun 27, 2024
1 parent 9157eac commit 17cd022
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:


env:
TESTCOVERAGE_THRESHOLD: 10
TESTCOVERAGE_THRESHOLD: 20

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/ilyakaznacheev/cleanenv v1.5.0
github.com/jmoiron/sqlx v1.4.0
github.com/opentracing/opentracing-go v1.2.0
github.com/valyala/fasthttp v1.54.0
go.uber.org/mock v0.4.0
)

Expand All @@ -40,7 +41,6 @@ require (
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.54.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
Expand Down
10 changes: 5 additions & 5 deletions internal/app/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func GetUserLoginFromCtx(ctx context.Context) (*Auth, error) {

// Create a new User struct with the retrieved values
user := &Auth{
UserID: int64(userID),
Username: username,
RoleID: int64(roleID),
IsUserActive: isUserActive,
RequestID: requestID,
UserID: int64(userID),
Username: username,
RoleID: int64(roleID),
IsUserActive: isUserActive,
RequestID: requestID,
}

return user, nil
Expand Down
2 changes: 1 addition & 1 deletion internal/app/repository/user_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestUserRepository_GetUserByEmail(t *testing.T) {
{
name: "SUCCESS - GetUserByEmail",
args: args{

ctx: context.Background(),
email: "mock@email.com",
},
Expand Down

0 comments on commit 17cd022

Please sign in to comment.