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

Fix: nullreference error #12

Merged
merged 2 commits into from May 4, 2022
Merged

Fix: nullreference error #12

merged 2 commits into from May 4, 2022

Conversation

mkmarek
Copy link
Collaborator

@mkmarek mkmarek commented May 4, 2022

No description provided.

@@ -159,10 +159,10 @@ func (client *appSyncClient) CreateOrUpdateResolvers(apiID string, resolversFile
})

if err != nil {
logger.Println(fmt.Sprintf("Function %s failed to create: %s", *function.Name, err))
logger.Println(fmt.Sprintf("Function %s failed to create: %s", function.Name, err))
Copy link
Contributor

Choose a reason for hiding this comment

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

functionName is Already an existing variable that contains the function name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the end I removed the functionName variable. There are plenty of references to the function variable... so felt better to just do that instead of creating separate functionName variable

@mkmarek mkmarek merged commit 603a964 into master May 4, 2022
@mkmarek mkmarek deleted the fix/nullreference-error branch May 4, 2022 11:15
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.

None yet

2 participants