Skip to content

Commit

Permalink
Run golangci-lint run --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Apr 21, 2023
1 parent 6b127e2 commit 3592462
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/editor/plaineditor/typer.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func handleKeydown(event js.Value) {
selectionEnd := target.Get("selectionEnd").Int()
key := event.Get("key").String()
code := event.Get("code").String()
//metaKey := event.Get("metaKey").Bool()
// metaKey := event.Get("metaKey").Bool()

preventDefault := func() {
event.Call("preventDefault")
Expand All @@ -60,7 +60,7 @@ func handleKeydown(event js.Value) {

if code == KeyEnter {
// TODO restore cmd+enter triggering run button
//if metaKey {
// if metaKey {
//preventDefault()
//runPlayground()
//return
Expand Down
1 change: 1 addition & 0 deletions http_get.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build js
// +build js

package main
Expand Down
2 changes: 1 addition & 1 deletion internal/interop/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func ProfileJS(this js.Value, args []js.Value) interface{} {
go func() {
MemoryProfileJS(this, args)
// Re-enable once these profiles actually work in the browser. Currently produces 0 samples.
//TraceProfileJS(this, args)
// TraceProfileJS(this, args)
//StartCPUProfileJS(this, args)
}()
return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/js/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Init() {
globals.Set("child_process", map[string]interface{}{})
childProcess := globals.Get("child_process")
interop.SetFunc(childProcess, "spawn", spawn)
//interop.SetFunc(childProcess, "spawnSync", spawnSync) // TODO is there any way to run spawnSync so we don't hit deadlock?
// interop.SetFunc(childProcess, "spawnSync", spawnSync) // TODO is there any way to run spawnSync so we don't hit deadlock?
interop.SetFunc(childProcess, "wait", wait)
interop.SetFunc(childProcess, "waitSync", waitSync)
}
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build js
// +build js

package main
Expand Down

0 comments on commit 3592462

Please sign in to comment.