Skip to content

Commit 3592462

Browse files
committedApr 21, 2023
Run golangci-lint run --fix
1 parent 6b127e2 commit 3592462

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed
 

‎cmd/editor/plaineditor/typer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func handleKeydown(event js.Value) {
4343
selectionEnd := target.Get("selectionEnd").Int()
4444
key := event.Get("key").String()
4545
code := event.Get("code").String()
46-
//metaKey := event.Get("metaKey").Bool()
46+
// metaKey := event.Get("metaKey").Bool()
4747

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

6161
if code == KeyEnter {
6262
// TODO restore cmd+enter triggering run button
63-
//if metaKey {
63+
// if metaKey {
6464
//preventDefault()
6565
//runPlayground()
6666
//return

‎http_get.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build js
12
// +build js
23

34
package main

‎internal/interop/profile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func ProfileJS(this js.Value, args []js.Value) interface{} {
1919
go func() {
2020
MemoryProfileJS(this, args)
2121
// Re-enable once these profiles actually work in the browser. Currently produces 0 samples.
22-
//TraceProfileJS(this, args)
22+
// TraceProfileJS(this, args)
2323
//StartCPUProfileJS(this, args)
2424
}()
2525
return nil

‎internal/js/process/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func Init() {
3636
globals.Set("child_process", map[string]interface{}{})
3737
childProcess := globals.Get("child_process")
3838
interop.SetFunc(childProcess, "spawn", spawn)
39-
//interop.SetFunc(childProcess, "spawnSync", spawnSync) // TODO is there any way to run spawnSync so we don't hit deadlock?
39+
// interop.SetFunc(childProcess, "spawnSync", spawnSync) // TODO is there any way to run spawnSync so we don't hit deadlock?
4040
interop.SetFunc(childProcess, "wait", wait)
4141
interop.SetFunc(childProcess, "waitSync", waitSync)
4242
}

‎main.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build js
12
// +build js
23

34
package main

0 commit comments

Comments
 (0)
Please sign in to comment.