Skip to content

Commit

Permalink
eslint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Dec 4, 2023
1 parent c616d3f commit 1743284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const emitDot = desc => {
let name;
if (typeof row === 'string') {
name = row;
} else
if (typeof row === 'object') {
} else if (typeof row === 'object') {
name = row.name;
}
return name + ' [ ' +
Expand Down
2 changes: 1 addition & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const fsm = {
},
initialState: {
...name,
description: 'name of the initial state',
description: 'name of the initial state'
},
width: {
type: 'integer',
Expand Down
3 changes: 1 addition & 2 deletions lib/verilog.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ const cases = (res, act, name) => {
' end'
);
}
} else
if (typeof act === 'object') {
} else if (typeof act === 'object') {
const keys = Object.keys(act);
if (keys.length > 0) {
res.push(
Expand Down

0 comments on commit 1743284

Please sign in to comment.