zos.dsinfo is returning null for empty string, object with empty array for invalid input and object with data for valid input. This is not a good practice. Return null when no data otherwise return object.
This PR addresses Issue: #493
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
PR Checklist
Please delete options that are not relevant.
[x] If the changes in this PR are meant for the next release / mainline, this PR targets the "staging" branch.
Proposed changes
zos.dsinfo
is returningnull
for empty string, object with empty array for invalid input and object with data for valid input. This is not a good practice. Returnnull
when no data otherwise return object.This PR addresses Issue: #493
Type of change
Please delete options that are not relevant.
PR Checklist
Please delete options that are not relevant.
Testing
Without fix, see #493
With fix
Additional information
The
zos.dslist(sys1.maclib)=null
is questionable. Do we want to be so strict isjavascript
?