Skip to content

Commit 245ceb9

Browse files
committed
reduce cognitive complexity
1 parent cbaab90 commit 245ceb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/bashly/commands/add.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def add_lib(name)
4343
library.args = args['ARGS']
4444
@skip_src_check = lib_source.config.dig name, 'skip_src_check'
4545

46+
add_library_files library
47+
end
48+
49+
def add_library_files(library)
4650
files_created = 0
4751
library.files.each do |file|
4852
created = safe_write file[:path], file[:content]

0 commit comments

Comments
 (0)