Skip to content

Commit

Permalink
fix double arg
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Sep 11, 2024
1 parent 225f8d4 commit d8c0432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hscontrol/db/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ func generateGivenName(suppliedName string, randomSuffix bool) (string, error) {
func isUnqiueName(tx *gorm.DB, name string) (bool, error) {
nodes := types.Nodes{}
if err := tx.
Where("given_name = ?", name, name).Find(&nodes).Error; err != nil {
Where("given_name = ?", name).Find(&nodes).Error; err != nil {
return false, err
}

Expand Down

0 comments on commit d8c0432

Please sign in to comment.