Skip to content

Commit

Permalink
FIX Delete unneeded if statement and update .gitattributes file
Browse files Browse the repository at this point in the history
  • Loading branch information
raissanorth committed Dec 17, 2017
1 parent fa2a9a2 commit bdd4eca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/.gitignore export-ignore
/.travis.yml export-ignore
/.scrutinizer.yml export-ignore
/codecov.yml
/codecov.yml export-ignore
4 changes: 0 additions & 4 deletions src/AkismetSpamProtector.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ public static function set_api_key($key)
*/
protected static function get_api_key()
{
if (self::$api_key) {
return self::$api_key;
}

// Check config
$key = Config::inst()->get(AkismetSpamProtector::class, 'api_key');
if (!empty($key)) {
Expand Down

0 comments on commit bdd4eca

Please # to comment.