Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Dec 5, 2024
1 parent 4496a4b commit 06ab2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl/hannahsten/texifyidea/util/CommandRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ suspend fun runCommandNonBlocking(

// where/which commands occur often but do not change since the output depends on PATH, so can be cached
val isExecutableLocationCommand = commands.size == 2 && listOf("where", "which").contains(commands[0])
if (isExecutableLocationCommand && SystemEnvironment.executableLocationCache.get(commands[1]) != null) {
if (isExecutableLocationCommand && SystemEnvironment.executableLocationCache[commands[1]] != null) {
val standardOutput = SystemEnvironment.executableLocationCache[commands[1]]
Log.debug("Retrieved output of $commands from cache: $standardOutput")
return@withContext CommandResult(0, standardOutput, null)
Expand Down

0 comments on commit 06ab2ec

Please sign in to comment.