The return value is only actually used once right now (at line 390 in settings_grading_view.js). While it only saves a line or two of code, it matches the semantics of assignment (`if((var foo = bar()) != null) doSomethingWith(foo);`, for example), and it seems like it could be useful in other places.