Skip to content

Commit 6546c0a

Browse files
committed
🎨 Fix Lint/AmbiguousOperator issues
1 parent 17bc088 commit 6546c0a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Rakefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,18 @@ VALGRIND_MEMORYFILL_OPTIONS = [
113113
GDB_OPTIONS = []
114114

115115
task :console do |task|
116-
cmd = ["irb", "-r './lib/nmatrix.rb'"]
117-
run *cmd
116+
run("irb", "-r './lib/nmatrix.rb'")
118117
end
119118

120119
task :pry do |task|
121-
cmd = ["pry", "-r './lib/nmatrix.rb'"]
122-
run *cmd
120+
run("pry", "-r './lib/nmatrix.rb'")
123121
end
124122

125123
namespace :pry do
126124
task valgrind: [:compile] do |task|
127125
cmd = ["valgrind"] + VALGRIND_OPTIONS
128126
cmd += ["ruby", "-Ilib:ext", "-r './lib/nmatrix.rb'", "-r 'pry'", "-e 'binding.pry'"]
129-
run *cmd
127+
run(*cmd)
130128
end
131129
end
132130

lib/nmatrix/io/point_cloud.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def initialize filename
122122
raise(IOError, "premature end of file") if i < points[0]
123123
end
124124

125-
attr_accessor *ENTRIES
125+
attr_accessor(*ENTRIES)
126126
attr_reader :matrix
127127

128128
protected

0 commit comments

Comments
 (0)