Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Eraxyso committed Aug 30, 2024
1 parent bd06106 commit 54e993d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions model/targets_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func NewTarget() *Target {
return new(Target)
}

//Targets targetsテーブルの構造体
// Targets targetsテーブルの構造体
type Targets struct {
QuestionnaireID int `gorm:"type:int(11) AUTO_INCREMENT;not null;primaryKey"`
UserTraqid string `gorm:"type:varchar(32);size:32;not null;primaryKey"`
Expand Down Expand Up @@ -81,7 +81,7 @@ func (*Target) GetTargets(ctx context.Context, questionnaireIDs []int) ([]Target
return targets, nil
}

func(*Target) IsTargetingMe(ctx context.Context, questionnairID int, userID string) (bool, error) {
func (*Target) IsTargetingMe(ctx context.Context, questionnairID int, userID string) (bool, error) {
db, err := getTx(ctx)
if err != nil {
return false, fmt.Errorf("failed to get transaction: %w", err)
Expand All @@ -99,4 +99,4 @@ func(*Target) IsTargetingMe(ctx context.Context, questionnairID int, userID stri
return true, nil
}
return false, nil
}
}
6 changes: 3 additions & 3 deletions model/targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ func TestIsTargetingMe(t *testing.T) {
userID string
}
type expect struct {
isErr bool
err error
isTargeted bool
isErr bool
err error
isTargeted bool
}
type test struct {
description string
Expand Down

0 comments on commit 54e993d

Please sign in to comment.