Skip to content

Commit

Permalink
lint a random file
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot committed Nov 7, 2023
1 parent 6e588ae commit 8c37960
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

module SmartAttributes
class AttributeFactory

AUTO_SCRIPT_EXTENSIONS = ['sh', 'csh', 'bash', 'slurm', 'sbatch', 'qsub'].freeze

# Build this attribute object. Must specify a valid directory in opts
Expand Down Expand Up @@ -31,16 +30,15 @@ def self.script_options_from_directory(dir)

module Attributes
class AutoScripts < Attribute

# Value of auto_scripts attribute
# Defaults to first script path in the project
# @return [String] attribute value
def value
return nil if !opts[:value] && opts[:options].empty?

(opts[:value] || opts[:options].first.last).to_s
end

def widget
'select'
end
Expand Down

0 comments on commit 8c37960

Please sign in to comment.