Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

bug: Remove discussion comment and useless bool return #1027

Merged
merged 1 commit into from
Sep 28, 2017
Merged

Conversation

jrconlin
Copy link
Member

Closes #1026

@codecov-io
Copy link

codecov-io commented Sep 26, 2017

Codecov Report

Merging #1027 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1027      +/-   ##
==========================================
- Coverage   99.76%   99.76%   -0.01%     
==========================================
  Files          55       55              
  Lines        8802     8801       -1     
==========================================
- Hits         8781     8780       -1     
  Misses         21       21
Impacted Files Coverage Δ
autopush/db.py 100% <ø> (ø) ⬆️
autopush/router/webpush.py 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e07a7d...243b7d3. Read the comment docs.

autopush/db.py Outdated
@@ -436,7 +436,7 @@ def save_channels(self, uaid, channels):

@track_provisioned
def store_message(self, notification):
# type: (WebPushNotification) -> bool
# type: (WebPushNotification)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mypy wants -> None here (don't ask me why because I do this all the time)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, huh, and pycharm noted that. Need to make it a more important warning.

@@ -448,7 +448,6 @@ def store_message(self, notification):
updateid=notification.update_id
)
self.table.put_item(data=item, overwrite=True)
return True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we should stop checking for this result in route_notification too (and remove the silly "result is False" line)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AH! I was looking at the wrong .save_notification and wondering what you meant.

And now I'm disturbed that removing that condition and the returned error didn't cause any test to fail or coverage line to be lost. (sigh)

@bbangert bbangert merged commit 0016d96 into master Sep 28, 2017
@bbangert bbangert deleted the bug/1026 branch September 28, 2017 23:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants