Commit 13eaa24d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix regression in validation of options.

Was broken since we implemented names for validators.
parent 0507abea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ module JsDuck
      #
      # Alternatively runs just one validator by name. Used in testing.
      def validate!(name=nil)
        validators = name ? [@validators[name]] : @validators
        validators = name ? [@validators[name]] : @validators.values

        validators.each do |block|
          if err = block.call()