Fix comment and clean up code by removing an unnecessary temporary variable.