Skip to content

Commit

Permalink
Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
afri committed Oct 21, 2023
1 parent d2a9dd7 commit 5265f61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/flux/kv/encoding.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/

@ = require('sjs:std');
var { hostenv, isArrayLike } = require('builtin:apollo-sys');

//----------------------------------------------------------------------
// Key encoding
Expand Down Expand Up @@ -107,7 +107,7 @@ __js {
}

var makeEncodingBuffer, encodeString, decodeString, copy, concat;
if (@sys.hostenv === 'nodejs') {
if (hostenv === 'nodejs') {
makeEncodingBuffer = Buffer.allocUnsafe;
encodeString = str -> Buffer.from(str, 'utf8');
decodeString = (buf, start, end) -> buf.toString('utf8', start, end);
Expand Down Expand Up @@ -159,7 +159,7 @@ __js {

//byte string or unicode
// TODO better isArrayLike test
else if(typeof item === 'string' || @isArrayLike(item)) {
else if(typeof item === 'string' || isArrayLike(item)) {
var unicode = typeof item === 'string';

if (unicode) {
Expand Down

0 comments on commit 5265f61

Please sign in to comment.