Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 1, 2024
1 parent 258a68d commit 3e90653
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3e90653

Please sign in to comment.