Skip to content

Commit

Permalink
After formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthyedoti committed Apr 19, 2022
1 parent 4b4a665 commit c246274
Show file tree
Hide file tree
Showing 8 changed files with 798 additions and 1,054 deletions.
10 changes: 2 additions & 8 deletions lib/astupdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ const buildExplicitCases = (patterndecls) => {
}

const buildDefaultCase = (funcdecl) => {
const defaultcase = {
type: 'SwitchCase',
test: null,
consequent: []
}
const defaultcase = { type: 'SwitchCase', test: null, consequent: [] }
const consequent = { type: 'ReturnStatement' }
const arg = funcdecl.declarations[0].init.body
consequent.argument =
Expand Down Expand Up @@ -78,9 +74,7 @@ const isArrowFuncDecl = (decl) => {
if (
declarations !== undefined &&
declarations[0].init.type === 'ArrowFunctionExpression'
) {
return true
}
) { return true }
return false
}

Expand Down
Loading

0 comments on commit c246274

Please sign in to comment.