-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: revert "chore: rename Lambda related interfaces (#288)" #296
Conversation
constructor(scope: Construct, id: string, props: DatadogLambdaProps) { | ||
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() === "true") { | ||
constructor(scope: Construct, id: string, props: DatadogProps) { | ||
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() == "true") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ Code Quality Violation
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() == "true") { | |
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() === "true") { |
Expected '===' and instead saw '=='. (...read more)
In JavaScript, ==
and !=
comparisons do type coercion, which can be confusing and may introduce potential errors. Use the type-safe equality operators ===
and !==
instead.
constructor(scope: Construct, id: string, props: DatadogLambdaProps) { | ||
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() === "true") { | ||
constructor(scope: Construct, id: string, props: DatadogProps) { | ||
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() == "true") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ Code Quality Violation
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() == "true") { | |
if (process.env.DD_CONSTRUCT_DEBUG_LOGS?.toLowerCase() === "true") { |
Expected '===' and instead saw '=='. (...read more)
In JavaScript, ==
and !=
comparisons do type coercion, which can be confusing and may introduce potential errors. Use the type-safe equality operators ===
and !==
instead.
/merge |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
What does this PR do?
Reverts #288
Motivation
#294
Testing Guidelines
for Python
Steps
DatadogProps
480eed0Result
Before:
cdk deploy
gives an error:After:
cdk deploy
runs successfullyfor Go
Similar. Reproduced the issue on v1.16.0, and ensure the issue is fixed by the PR.
Additional Notes
Types of Changes
Check all that apply