lib/coconductor/projects/project.rb in coconductor-0.9.4 vs lib/coconductor/projects/project.rb in coconductor-0.10.0
- old
+ new
@@ -1,11 +1,13 @@
+# frozen_string_literal: true
+
module Coconductor
module Projects
module Project
DIRS = ['./', './docs/', './.github/'].freeze
def code_of_conduct
- code_of_conduct_file.code_of_conduct if code_of_conduct_file
+ code_of_conduct_file&.code_of_conduct
end
def code_of_conduct_file
return @code_of_conduct_file if defined? @code_of_conduct_file
return if files.nil? || files.empty?