Skip to content

Commit 6ff7fe1

Browse files
Don't raise if it's not set, so we can use ||=
1 parent 74099b4 commit 6ff7fe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/singed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def output_directory=(directory)
1313
end
1414

1515
def self.output_directory
16-
@output_directory || raise("output directory hasn't been set!")
16+
@output_directory
1717
end
1818

1919
def enabled=(enabled)

lib/singed/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run
6565

6666
Singed.output_directory = @output_directory if @output_directory
6767
Singed.output_directory ||= Dir.tmpdir
68-
FileUtils.mkdir_p Signed.output_directory
68+
FileUtils.mkdir_p Singed.output_directory
6969
@filename = Singed::Flamegraph.generate_filename(label: 'cli')
7070

7171
options = {

0 commit comments

Comments
 (0)