Skip to content

Conversation

juanjux
Copy link
Contributor

@juanjux juanjux commented Oct 9, 2019

Fixes #966

Signed-off-by: Juanjo Alvarez juanjo@sourced.tech

  • I updated the documentation explaining the new behavior if any.
  • I updated CHANGELOG.md file adding the new feature or bug fix.
  • I updated go-mysql-server using make upgrade command if applicable.
  • I added or updated examples if applicable.
  • I checked that changes on schema are reflected into the documentation, if applicable.
@juanjux juanjux requested a review from a team October 9, 2019 12:18
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
result, err := git.Blame(g.commit, g.curFile.Name)
if err != nil {
return err
msg := fmt.Sprintf("Error in BLAME for file %s: %s",
Copy link
Contributor

Choose a reason for hiding this comment

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

of one of the parameters is in a newline, then better put each in a new line:

msg := fmt.Sprintf( "Error in BLAME for file %s: %s", g.curFile.Name, err.Error(), )
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

}

bg, err := NewBlameGenerator(commit, fIter)
bg, err := NewBlameGenerator(commit, fIter, ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Context is by convention always the first parameter if a function takes a context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks, learnt something new.

Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
@ajnavarro ajnavarro merged commit 754ede2 into master Oct 9, 2019
@ajnavarro ajnavarro deleted the no-blame-abort branch October 9, 2019 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants