diff --git a/exec_test.go b/exec_test.go index 8599c4f..c7613e9 100644 --- a/exec_test.go +++ b/exec_test.go @@ -14,7 +14,7 @@ func TestProject_GoCompile(t *testing.T) { t.Error("Unexpected", err) } go func() { - result, err = p.goCompile(stop, []string{"sleep"}, []string{"20s"}) + result, _ = p.goCompile(stop, []string{"sleep"}, []string{"20s"}) response <- result }() close(stop) diff --git a/settings.go b/settings.go index 5820549..8fe1cbe 100644 --- a/settings.go +++ b/settings.go @@ -32,7 +32,7 @@ const ( // Settings defines a group of general settings and options type Settings struct { - file string `yaml:"-" json:"-"` + file string Files `yaml:"files,omitempty" json:"files,omitempty"` FileLimit int64 `yaml:"flimit,omitempty" json:"flimit,omitempty"` Legacy Legacy `yaml:"legacy" json:"legacy"` @@ -90,7 +90,7 @@ func (s *Settings) flimit() error { rLimit.Max = uint64(s.FileLimit) rLimit.Cur = uint64(s.FileLimit) - return syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) + return syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) } // Delete realize folder diff --git a/settings_windows.go b/settings_windows.go index f177bac..5920d1c 100644 --- a/settings_windows.go +++ b/settings_windows.go @@ -137,7 +137,6 @@ func (s *Settings) record(out interface{}) error { } } return s.write(filepath.Join(Directory, s.File), y) - return nil } // Stream return a byte stream of a given file