Skip to content

Commit c5cac82

Browse files
refactor: inline internal aer option
1 parent c193574 commit c5cac82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/aer256.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import aer256ArmonBase from './helpers/aerArmonBase'
22

33
const encode = (input, options = {}) => {
4-
options = { ...DEFAULT_OPTIONS, ...options }
5-
options.isAer256 = true
4+
options = { ...DEFAULT_OPTIONS, ...options, isAer256: true }
65
return aer256ArmonBase.encode(input, options)
76
}
87

98
const decode = (input, options = {}) => {
10-
options = { ...DEFAULT_OPTIONS, ...options }
11-
options.isAer256 = true
9+
options = { ...DEFAULT_OPTIONS, ...options, isAer256: true }
1210
return aer256ArmonBase.decode(input, options)
1311
}
1412

0 commit comments

Comments
 (0)