Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview diff/commit for changes #3380

Closed
wants to merge 1 commit into from

Conversation

kanodia-parag
Copy link

preview diff

@@ -1,6 +1,6 @@
module github.com/99designs/gqlgen

go 1.22.5
go 1.23
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, can you make sure you don't upgrade this by mistake?

@coveralls
Copy link

Coverage Status

coverage: 59.611% (+0.01%) from 59.601%
when pulling 7847d79 on kanodia-parag:master_commit
into 1040b92 on 99designs:master.

@@ -274,6 +275,21 @@ func Call(p *types.Func) string {
return pkg + p.Name()
}

func dict(values ...interface{}) (map[string]interface{}, error) {
if len(values)%2 != 0 {
return nil, fmt.Errorf("invalid dict call: arguments must be key-value pairs")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("invalid dict call: arguments must be key-value pairs")
return nil, errors.New("invalid dict call: arguments must be key-value pairs")

for i := 0; i < len(values); i += 2 {
key, ok := values[i].(string)
if !ok {
return nil, fmt.Errorf("dict keys must be strings")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("dict keys must be strings")
return nil, errors.New("dict keys must be strings")

@kanodia-parag
Copy link
Author

closing this PR as it was raised with partial changes. Will be raising a new PR in a while with complete changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants