Merge lp:~submarine/ubuntu-scopes/openweathermap-dont-reorder into lp:~submarine/ubuntu-scopes/openweathermap

Proposed by David Callé
Status: Merged
Approved by: James Henstridge
Approved revision: 19
Merged at revision: 19
Proposed branch: lp:~submarine/ubuntu-scopes/openweathermap-dont-reorder
Merge into: lp:~submarine/ubuntu-scopes/openweathermap
Diff against target: 10 lines (+0/-2)
1 file modified
src/unity_openweathermap_daemon.py (+0/-2)
To merge this branch: bzr merge lp:~submarine/ubuntu-scopes/openweathermap-dont-reorder
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
James Henstridge Approve
Review via email: mp+154546@code.launchpad.net

Commit message

Remove results re-ordering, which was introduced as a workaround for an early display issue.

Description of the change

Remove results re-ordering, which was introduced as a workaround for an early display issue.

To post a comment you must log in.
Revision history for this message
David Callé (davidc3) wrote :

Remove results re-ordering, which was introduced as a workaround for an early display issue.

Revision history for this message
James Henstridge (jamesh) wrote :

I'm kind of surprised that the test suite passes with this change. It looks like it is testing the first result, which this branch is changing. Or was this code path not hit by the existing tests?

review: Needs Information
Revision history for this message
David Callé (davidc3) wrote :

The mock data set only produces two results.

Revision history for this message
James Henstridge (jamesh) wrote :

I guess without this reordering code, that should be enough: deleting an untested code path is fine with me.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity_openweathermap_daemon.py'
2--- src/unity_openweathermap_daemon.py 2013-03-19 22:27:09 +0000
3+++ src/unity_openweathermap_daemon.py 2013-03-20 23:02:22 +0000
4@@ -152,8 +152,6 @@
5 'icon':icon,
6 'title':title,
7 'comment':description})
8- if len(results) == 5:
9- results.insert(0, results.pop(4))
10 return results
11
12

Subscribers

People subscribed via source and target branches

to all changes: