Skip to content

Commit

Permalink
[yegor256#537] Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Jan 29, 2024
1 parent 947cd9c commit 693177d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Metrics/MethodLength:
Max: 50
Metrics/ClassLength:
Max: 200
Exclude:
- "test/test_*.rb"
Metrics/AbcSize:
Max: 60
Metrics/BlockLength:
Expand Down
3 changes: 1 addition & 2 deletions objects/git_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class GitRepo
def initialize(
uri:,
name:,
target: 'master',
master: 'master',
head_commit_hash: '',
**options
Expand All @@ -50,7 +49,7 @@ def initialize(
@id_rsa = options[:id_rsa] || ''
@master = master
@head_commit_hash = head_commit_hash
@target = target
@target = options[:target] || 'master'
end

def lock
Expand Down
2 changes: 1 addition & 1 deletion objects/vcs/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def git_repo(json, config)
GitRepo.new(
uri: uri,
name: name,
target: target,
id_rsa: config['id_rsa'],
target: target,
master: default_branch,
head_commit_hash: head_commit_hash
)
Expand Down

0 comments on commit 693177d

Please sign in to comment.