Skip to content

Commit 5bf6e4d

Browse files
Merge branch 'develop' into develop
2 parents 47501c4 + 9cdcdf9 commit 5bf6e4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rules/gas-consumption/gas-increment-by-one.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ class GasIncrementByOne extends BaseChecker {
6060
const leftVar = this.extractVariableName(left)
6161
let rightValue
6262

63-
// asignment and operation
63+
// assignment and operation
6464
if (operator === '+=' || operator === '-=') {
6565
rightValue = right.type === 'NumberLiteral' && parseInt(right.number) === 1
6666
return { result: leftVar && rightValue, varName: leftVar }
6767
}
68-
// regular asignment
68+
// regular assignment
6969
else if (operator === '=') {
7070
const rightVar = this.extractVariableName(right.left)
7171
rightValue =

lib/rules/naming/named-parameters-mapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class NamedParametersMappingChecker extends BaseChecker {
6969
let isNested = false
7070
const variables = node.variables
7171
variables.forEach((variable) => {
72-
// maybe the comparission to VariableDeclaration can be deleted
72+
// maybe the comparison to VariableDeclaration can be deleted
7373
if (variable.type === 'VariableDeclaration' && variable.typeName.type === 'Mapping') {
7474
if (variable.typeName.valueType.type === 'Mapping') {
7575
// isNested mapping

0 commit comments

Comments
 (0)