Skip to content

Commit

Permalink
A little more compact code
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Sep 7, 2017
1 parent 35afb4c commit a88108d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,8 @@ public function onCustomFieldsGetTypes()
$types[] = $data;
}

// Add to cache
$types_cache[$this->_type . $this->_name] = $types;

// Return the data
return $types;
// Add to cache and return the data
return $types_cache[$this->_type . $this->_name] = $types;
}

/**
Expand Down

0 comments on commit a88108d

Please sign in to comment.