Skip to content

Commit 044d743

Browse files
erezrokahkodiakhq[bot]
andauthoredJan 7, 2022
fix(telemetry): fix always true condition (#3974)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 849362f commit 044d743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/utils/telemetry/validation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const { log } = require('../command-helpers')
55

66
module.exports = function isValidEventName(eventName, config) {
7-
const validProject = [config.projectName] || []
7+
const validProject = [config.projectName]
88
const validObjects = config.objects || []
99
const matches = eventName.match(/([a-zA-Z]*):([a-zA-Z]*)_([a-zA-Z]*$)/)
1010
if (!containsSeparators(eventName) || !matches) {

1 commit comments

Comments
 (1)

github-actions[bot] commented on Jan 7, 2022

@github-actions[bot]

📊 Benchmark results

Package size: 356 MB

Please sign in to comment.