Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 477f555

Browse files
committed
linting errors
1 parent 4446c9b commit 477f555

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cmd/bundle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def bundle
110110
when "add"
111111
Bundle::Commands::Add.run(
112112
global: args.global?,
113-
file: args.file
113+
file: args.file,
114114
)
115115
when "dump"
116116
Bundle::Commands::Dump.run(

lib/bundle/commands/add.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ def run(*args, global: false, file: nil)
1919
parsed_entries.each do |entry|
2020
# raise an error if the entry already exists in the Brewfile
2121
# this could also be a noop, or print a friendly message
22+
opoo "'#{name}' already exists in Brewfile."
2223
raise RuntimeError if entry.name == name
2324
end
2425

2526
# need some help / pointers here
2627
# is it possible to use Bundle::Dsl to create an in memory representation
27-
#of the brewfile that we read, add an entry and then dump that back to the file?
28+
# of the brewfile that we read, add an entry and then dump that back to the file?
2829
end
2930
end
3031
end

spec/bundle/commands/add_command_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323

2424
context "the formula is not in the Brewfile" do
2525
it "does not raise an error" do
26-
expect { described_class.run("wget") }.to_not raise_error
26+
expect { described_class.run("wget") }.not_to raise_error
2727
end
2828

2929
it "adds the formula to the Brewfile" do
30-
#TODO
30+
# TODO
3131
end
3232
end
3333

0 commit comments

Comments
 (0)