From 3e906532ffce9e2712f5d6bf39e44175e4d9df2d Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Mon, 1 Jul 2024 16:10:59 +0000 Subject: [PATCH] Clean up code --- test/index.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/index.test.js b/test/index.test.js index 7e4c93a..056bb6c 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -8,9 +8,8 @@ let { join } = require('node:path') let updateDb = require('..') -// Check if HADOOP_HOME is set to determine if this is running in a Hadoop environment -const IsHadoopExists = !!process.env.HADOOP_HOME -const yarnCommand = IsHadoopExists ? 'yarnpkg' : 'yarn' +// Fix CLI tool name conflict between Yarn and Hadoop +const yarnCommand = process.env.HADOOP_HOME ? 'yarnpkg' : 'yarn' let testDir test.after.each(async () => {