Skip to content

Commit

Permalink
Don't define a type if it's already defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljuti committed Mar 30, 2024
1 parent b18452f commit fc59bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roseflow/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Types
include Dry.Types()

Number = Types::Float | Types::Integer
StringOrNil = Types::String | Types::Nil
StringOrNil = Types::String | Types::Nil unless const_defined?(:StringOrNil)

module OpenAI
FunctionCallObject = Types::Hash
Expand Down

0 comments on commit fc59bad

Please sign in to comment.