Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Nov 5, 2024
1 parent 2f702b8 commit 33d00c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/clear/extensions/interval/interval.cr
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct Clear::Interval
def initialize(
@months : Int32,
@days : Int32,
microseconds : Number
microseconds : Number,
)
@microseconds = (
microseconds.to_i64 +
Expand All @@ -59,7 +59,7 @@ struct Clear::Interval
@minutes : Int32 = 0,
@seconds : Int32 = 0,
@milliseconds : Int32 = 0,
@microseconds : Int64 = 0
@microseconds : Int64 = 0,
)
end

Expand Down
2 changes: 1 addition & 1 deletion src/clear/model/collection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module Clear::Model
@before_query_triggers = [] of -> Nil,
@tags = {} of String => Clear::SQL::Any,
@cache = Clear::Model::QueryCache.new,
@cached_result = nil
@cached_result = nil,
)
end

Expand Down
4 changes: 2 additions & 2 deletions src/clear/model/factory.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Clear::Model::Factory
h : Hash,
cache : Clear::Model::QueryCache? = nil,
persisted = false,
fetch_columns = false
fetch_columns = false,
) : Clear::Model
factory = FACTORIES[type].as(Base)

Expand All @@ -24,7 +24,7 @@ module Clear::Model::Factory
h : Hash,
cache : Clear::Model::QueryCache? = nil,
persisted = false,
fetch_columns = false
fetch_columns = false,
) : T forall T
self.build(T.name, h, cache, persisted, fetch_columns).as(T)
end
Expand Down

0 comments on commit 33d00c2

Please sign in to comment.