Small refactoring: do not use temporary variable