A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/6d456bba46d6afe1e2cf9464908e6ad99375cb7c below:

dont write log file for completion commands (#7497) · npm/cli@6d456bb · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+6

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+6

-1

lines changed Original file line number Diff line number Diff line change

@@ -176,6 +176,7 @@ class Npm {

176 176

// take a long time to resolve, but that is why process.exit is called explicitly

177 177

// in the exit-handler.

178 178

this.unrefPromises.push(this.#logFile.load({

179 +

command,

179 180

path: this.logPath,

180 181

logsMax: this.config.get('logs-max'),

181 182

timing: this.config.get('timing'),

Original file line number Diff line number Diff line change

@@ -48,7 +48,11 @@ class LogFiles {

48 48

this.#endStream()

49 49

}

50 50 51 -

load ({ path, logsMax = Infinity, timing } = {}) {

51 +

load ({ command, path, logsMax = Infinity, timing } = {}) {

52 +

if (['completion'].includes(command)) {

53 +

return

54 +

}

55 + 52 56

// dir is user configurable and is required to exist so

53 57

// this can error if the dir is missing or not configured correctly

54 58

this.#path = path

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4