Skip to content

Commit b7efca2

Browse files
committed
Improve variable naming in packstream-v2
1 parent b0593be commit b7efca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/v1/internal/packstream-v2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ function unpackDuration(unpacker, structSize, buffer) {
220220
}
221221

222222
function packLocalTime(value, packer, onError) {
223-
const totalNanos = cypherLocalTimeToNanoOfDay(value);
223+
const nanoOfDay = cypherLocalTimeToNanoOfDay(value);
224224

225225
const packableStructFields = [
226-
packer.packable(totalNanos, onError)
226+
packer.packable(nanoOfDay, onError)
227227
];
228228
packer.packStruct(LOCAL_TIME, packableStructFields, onError);
229229
}
@@ -242,11 +242,11 @@ function unpackLocalTime(unpacker, structSize, buffer) {
242242
* @param {function} onError the error callback.
243243
*/
244244
function packTime(value, packer, onError) {
245-
const totalNanos = cypherLocalTimeToNanoOfDay(value.localTime);
245+
const nanoOfDay = cypherLocalTimeToNanoOfDay(value.localTime);
246246
const offsetSeconds = int(value.offsetSeconds);
247247

248248
const packableStructFields = [
249-
packer.packable(totalNanos, onError),
249+
packer.packable(nanoOfDay, onError),
250250
packer.packable(offsetSeconds, onError)
251251
];
252252
packer.packStruct(TIME, packableStructFields, onError);

0 commit comments

Comments
 (0)