We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bef3a23 commit f2e54bcCopy full SHA for f2e54bc
2 files changed
internal/update/update.go
@@ -223,7 +223,7 @@ func (u *UpdateNotification) isCI() bool {
223
224
// isIgnoredCommand returns true when the process is in the list of commands.
225
func (u *UpdateNotification) isIgnoredCommand() bool {
226
- ignoredCommands := []string{"_fingerprint", "version"}
+ ignoredCommands := []string{"_fingerprint", "api", "version"}
227
osStr := os.Args[0:]
228
if len(osStr) < 2 {
229
return false
internal/update/update_test.go
@@ -153,6 +153,10 @@ func Test_UpdateNotification_isIgnoredCommand(t *testing.T) {
153
command: "",
154
expected: false,
155
},
156
+ "api command": {
157
+ command: "api",
158
+ expected: true,
159
+ },
160
"fingerprint command": {
161
command: "_fingerprint",
162
expected: true,
0 commit comments