File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
components/workspacekit/cmd Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -834,11 +834,14 @@ var ring2Cmd = &cobra.Command{
834
834
Max uint64 `json:"hardLimit"`
835
835
}
836
836
837
- rLimitValue := os .Getenv ("GITPOD_RLIMIT_CORE" )
838
837
var rLimitCore fakeRlimit
839
- err = json .Unmarshal ([]byte (rLimitValue ), & rLimitCore )
840
- if err != nil {
841
- log .WithError (err ).WithField ("data" , rLimitValue ).Error ("cannot deserialize GITPOD_RLIMIT_CORE" )
838
+
839
+ rLimitValue := os .Getenv ("GITPOD_RLIMIT_CORE" )
840
+ if len (rLimitValue ) != 0 {
841
+ err = json .Unmarshal ([]byte (rLimitValue ), & rLimitCore )
842
+ if err != nil {
843
+ log .WithError (err ).WithField ("data" , rLimitValue ).Error ("cannot deserialize GITPOD_RLIMIT_CORE" )
844
+ }
842
845
}
843
846
844
847
// we either set a limit or explicitly disable core dumps by setting 0 as values
You can’t perform that action at this time.
0 commit comments