Description
src/models/endpoint.cr (lines 130–131) defines an empty initialize method for the Details struct:
struct Details
include JSON::Serializable
include YAML::Serializable
property code_paths : Array(PathInfo) = [] of PathInfo
property status_code : Int32?
property technology : String?
# + New details types to be added in the future..
def initialize
end
...
Since all properties already have default values (empty array and nil), Crystal will auto-generate a no-arg initializer. The explicit empty def initialize; end is redundant.
Additionally, the comment on line 128 has a minor formatting issue — trailing double periods (..) and a + prefix.
Suggested fix
- # + New details types to be added in the future..
-
- def initialize
- end
If the comment is still relevant, clean it up:
# New details types can be added in the future.
Description
src/models/endpoint.cr(lines 130–131) defines an emptyinitializemethod for theDetailsstruct:Since all properties already have default values (empty array and
nil), Crystal will auto-generate a no-arg initializer. The explicit emptydef initialize; endis redundant.Additionally, the comment on line 128 has a minor formatting issue — trailing double periods (
..) and a+prefix.Suggested fix
If the comment is still relevant, clean it up:
# New details types can be added in the future.