-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
chore(lint): cleanup unused variables in code #1563
Conversation
Deploy preview for netlify-cms-www ready! Built with commit ee5d7a3 |
Deploy preview for cms-demo ready! Built with commit ee5d7a3 |
61c3323
to
3bfad10
Compare
7d7a124
to
ee5d7a3
Compare
@@ -557,7 +557,7 @@ export default class API { | |||
const contentKey = slug; | |||
const branchName = this.generateBranchName(contentKey); | |||
return this.retrieveMetadata(contentKey) | |||
.then(metadata => this.closePR(metadata.pr, metadata.objects)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we should be removing associated metadata when a PR is closed, but we're not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erquhart Feel free to push a fix for this here, or separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spent some time looking through this and pickaxing some of the more curious changes, didn't uncover anything. I'm alright with merging as is.
Remove unused variables in code. I think this should get a fairly thorough review to make sure that there are not hidden bugs if we should have been using these variables.