-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
2732#connection properties type-safe guarding #3009
Conversation
add type checking add type checking qmail-queue smtp_forward type checking spf type checking is_dead_sender if transaction does not exist return true tarpit and do_lookups remove falsy check get_rs hook_unrecognized_command remove falsy check
bump eslint ecmaVersion to 20 lint
1432cb4
to
2e71e77
Compare
@msimerson LFR I added some logs also to clarify we entered the "null guard at x function" I just catch and fixed some other throw points in case of connection null. I believe I forgot something on CI 😨 Can you help me with that? |
I don't think we need the additional logging. When these conditions are hit, it's not an error or unexpected, and log entries for ended transactions tend to be confusing. Also, which is easier to read and looks better in the code? falsy let results = connection.transaction?.results || connection.results; w/o falsy let results = connection.results;
if (connection.transaction != null) {
results = connection.transaction.results;
} |
333ec4a
to
1a883ce
Compare
This pull request introduces 2 alerts when merging 1a883ce into 4afc7b1 - view on LGTM.com new alerts:
|
@msimerson Sorry long time no see Hey, I'm not sure if this error on CI windows 16x happens because of GCC, build-essential. Fallback to falsy check |
d4a807d
to
8dce6a3
Compare
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.
Looks like sqlite3 doesn't work on 16.x, I fallback ci-test-win to only 14.x, ok?
connection type checkingw Signed-off-by: Allan Murara <allan.murara@gmail.com>
8dce6a3
to
0488da9
Compare
Related to #2732
Changes proposed in this pull request:
Checklist: