Skip to content

Commit

Permalink
style: fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed May 6, 2020
1 parent b743db2 commit 4f234ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swagger/http/handlers/api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ require "semantic_version"
module Swagger::HTTP
class APIHandler
include Swagger::HTTP::Handler

@json : String

def initialize(document : Document, @endpoint : String, @debug_mode = true)
major = SemanticVersion.parse(document.openapi_version).major
@swagger_path = "/v#{major}/swagger.json"
Expand Down

0 comments on commit 4f234ef

Please sign in to comment.