summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwbgbg <bogw.wbg@alibaba-inc.com>2018-06-02 02:37:26 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-06-01 20:37:26 +0200
commit6cef88a09a8e5ac80018c6e7aa5dd218d11d591d (patch)
tree0777f206ab118c703b68b37017751cf4b94aa3d8
parentd582d67c523a7982a50c01e2302d0cf0bb0b6cfc (diff)
Simplify code. (#88)
-rw-r--r--os.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/os.go b/os.go
index 23d09fc88..85ca8f092 100644
--- a/os.go
+++ b/os.go
@@ -143,9 +143,8 @@ func HandleCodeFetch(moduleSpecifier string, containingFile string) (out []byte)
}
var sourceCode = string(sourceCodeBuf)
- var command = Msg_CODE_FETCH_RES
res = &Msg{
- Command: command,
+ Command: Msg_CODE_FETCH_RES,
CodeFetchResModuleName: moduleName,
CodeFetchResFilename: filename,
CodeFetchResSourceCode: sourceCode,