Skip to content

Commit d0ea371

Browse files
committed
Rubocop auto correct
1 parent 5f65372 commit d0ea371

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/hts/bam/pileup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Pileup
66
def initialize(bam)
77
@bam = bam
88
# typedef int (*bam_plp_auto_f)(void *data, bam1_t *b);
9-
f = FFI::Function.new(:int, [:pointer, :pointer], blocking: true) do |data, b|
9+
f = FFI::Function.new(:int, %i[pointer pointer], blocking: true) do |_data, _b|
1010
0
1111
end
1212
pt = FFI::MemoryPointer.new(:pointer)

test/bam/pileup_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def test_pileup_each_with_block
2020
pileup = @bam.pileup
2121
entries_count = 0
2222

23-
pileup.each do |entry|
24-
#assert_instance_of HTS::Bam::PileupEntry, entry
23+
pileup.each do |_entry|
24+
# assert_instance_of HTS::Bam::PileupEntry, entry
2525
entries_count += 1
2626
end
2727

@@ -46,8 +46,8 @@ def test_pileup_entry_methods
4646
assert_includes [true, false], entry.is_del?
4747
assert_includes [true, false], entry.is_refskip?
4848

49-
#assert_kind_of String, entry.base
50-
#assert_match(/[ACGTN]/, entry.base) unless entry.is_del?
49+
# assert_kind_of String, entry.base
50+
# assert_match(/[ACGTN]/, entry.base) unless entry.is_del?
5151
end
5252

5353
def test_pileup_entry_to_s

0 commit comments

Comments
 (0)