Preliminary Commit with fixes

- Sorted imports
- Fixed nested if block
- Added special nolint (goerr113) argument for error initialization
- Edited port in main.go
- Deleted swagger.json
This commit is contained in:
riabovvo committed 2020-09-02 10:33:28 +03:00
1 parent 9092acc8bf
commit abd54bf180
8 files changed
+32 -274

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ func TestGoja_AddFunction(t *testing.T) {
a.Equal("string", varchar)
a.Equal(0, integer)
a.Equal("test", object)
//nolint
//nolint:goerr113
return "test", errors.New("TEST")
}
vm = goja.New()