From 7b8c6674476036ce10650e67fd8975114c15edd6 Mon Sep 17 00:00:00 2001 From: Andrew Waage Date: Fri, 7 Oct 2016 18:37:36 -0700 Subject: [PATCH] style --- lib/github_changelog_generator/octo_fetcher.rb | 2 +- spec/unit/octo_fetcher_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/github_changelog_generator/octo_fetcher.rb b/lib/github_changelog_generator/octo_fetcher.rb index 6d0db33..c76affe 100644 --- a/lib/github_changelog_generator/octo_fetcher.rb +++ b/lib/github_changelog_generator/octo_fetcher.rb @@ -318,7 +318,7 @@ Make sure, that you push tags to remote repo via 'git push --tags'" # @param [Integer] attempt the attempt number # @return [Integer] Exponential backoff seconds def exp_backoff(attempt) - (2 ** attempt - 1) / 2 + (2**attempt - 1) / 2 end # Print specified line on the same string diff --git a/spec/unit/octo_fetcher_spec.rb b/spec/unit/octo_fetcher_spec.rb index 14dd244..7a254b4 100644 --- a/spec/unit/octo_fetcher_spec.rb +++ b/spec/unit/octo_fetcher_spec.rb @@ -15,7 +15,7 @@ describe GitHubChangelogGenerator::OctoFetcher do describe "#check_github_response" do context "when returns successfully" do it "returns block value" do - expect(fetcher.send(:check_github_response) { 1+1 }).to eq(2) + expect(fetcher.send(:check_github_response) { 1 + 1 }).to eq(2) end end @@ -35,7 +35,6 @@ describe GitHubChangelogGenerator::OctoFetcher do fetcher.send(:check_github_response) { raise(Octokit::Forbidden) } end end - end describe "#fetch_github_token" do