Skip to content

Commit

Permalink
fix(rule) tsc unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Alpert committed Jun 24, 2018
1 parent 48fb8cc commit 50a1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/function-no-return.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const meta: Rule.RuleMetaData = {
const create = (context: Rule.RuleContext) => {
return {
FunctionDeclaration(node) {
const { id, ReturnType, body, loc } = node
const { id, ReturnType, body } = node
const name = id.name
const type = ReturnType && ReturnType.value.toLowerCase()
let messageId = null
Expand Down

0 comments on commit 50a1307

Please sign in to comment.