Skip to content

Commit

Permalink
Fix Go source code indentation (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Aug 6, 2023
1 parent a3f6128 commit a359952
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ func MyGoFunc() js.Func {
readableStream := readableStreamConstructor.New(underlyingSource)

// Create the init argument for the Response constructor
// This allows us to pass a custom status code (and optionally headers and more)
// See: https://developer.mozilla.org/en-US/docs/Web/API/Response/Response
// This allows us to pass a custom status code (and optionally headers and more)
// See: https://developer.mozilla.org/en-US/docs/Web/API/Response/Response
responseInitObj := map[string]interface{}{
"status": http.StatusOK,
"statusText": http.StatusText(http.StatusOK),
Expand All @@ -528,8 +528,8 @@ func MyGoFunc() js.Func {
return nil
})

// Create and return the Promise object
// The Promise will resolve with a Response object
// Create and return the Promise object
// The Promise will resolve with a Response object
promiseConstructor := js.Global().Get("Promise")
return promiseConstructor.New(handler)
})
Expand Down

0 comments on commit a359952

Please sign in to comment.