Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jACOBIN-646 fix javaIoPrintStream.go 2 if-statements #276

Merged
merged 1 commit into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gfunction/javaIoPrintStream.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func PrintlnObject(params []interface{}) interface{} {
case *object.Object:
inObj := params[1].(*object.Object)
str = object.ObjectFieldToString(inObj, "FilePath")
if str == "null" {
if str != "null" {
str = object.ObjectFieldToString(inObj, "value")
}
case nil:
Expand Down Expand Up @@ -430,7 +430,7 @@ func PrintObject(params []interface{}) interface{} {
case *object.Object:
inObj := params[1].(*object.Object)
str = object.ObjectFieldToString(inObj, "FilePath")
if str == "null" {
if str != "null" {
str = object.ObjectFieldToString(inObj, "value")
}
case nil:
Expand Down
6 changes: 0 additions & 6 deletions src/globals/globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,6 @@ func InitGlobals(progName string) Globals {
return global
}

// ThreadList contains a list of all app execution threads and a mutex for adding new threads to the list.
// type ThreadList struct {
// ThreadsList *list.List
// ThreadsMutex sync.Mutex
// }

// GetGlobalRef returns a pointer to the singleton instance of Globals
func GetGlobalRef() *Globals {
return &global
Expand Down