Closed Bug 858171 Opened 11 years ago Closed 11 years ago

Miscellaneous code clean up

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

Details

Attachments

(1 file)

There are a variety of little things to be cleaned up in both the Python and JS, including unused/undeclared/redeclared variables, bad code style, etc.  I'll do some without changing any logic for easier review.
Sorry this patch is rather huge, but there was a lot of stuff that bothered me. :)

Most of the fixes are to indentation (especially the getJSON() callbacks, which were massively indented), spacing (horizontal and vertical), and variable declaration/initialization.  I also fixed some really long lines, but only where it was really easy; there are still lots of long lines in the JS that I didn't bother with.

This should make hacking on OF *slightly* more pleasing. :)
Attachment #736899 - Flags: review?(emorley)
Comment on attachment 736899 [details] [diff] [review]
Miscellaneous code cleanup

Review of attachment 736899 [details] [diff] [review]:
-----------------------------------------------------------------

::: server/handlers.py
@@ +206,2 @@
>      def getPushLogData(self, args):
> +        """Retrieves the tbpl data from elasticsearch DB."""

I know this was the original comment wording, but wondering if we'd be better off with something like:
"Retrieves the tbpl comment submissions from elasticsearch DB."

Also, the function name is slightly misleading, but I'm sure it's not the only one in this file! :-)
Attachment #736899 - Flags: review?(emorley) → review+
Okay, updated the comment (and a couple other little cleanups, including removing an out-of-date platform list in a comment).

Pushed and deployed.

http://hg.mozilla.org/automation/orangefactor/rev/8bb01b4aa231
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: