Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

please the peanut gallery

  • Loading branch information...
commit 990e2537fbefb855215b61e42087f2cbed4429d3 1 parent b70cfef
@leedo authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/Noembed/Source/Twitter.pm
View
6 lib/Noembed/Source/Twitter.pm
@@ -16,11 +16,9 @@ sub prepare_source {
sub read_credentials {
my $file = Noembed::share_dir() . "/twitter_cred.json";
- if (! -r $file) {
- die "can not read twitter credentials: $file";
- }
local $/;
- open my $fh, "<", $file;
+ open(my $fh, "<", $file)
+ or die "can not read twitter credentials: $file";
decode_json join "", <$fh>;
}
Please sign in to comment.
Something went wrong with that request. Please try again.