proxb / PoshRSJob

Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.
MIT License
541 stars 87 forks source link

Update Start-RSJob.ps1 #190

Closed JacobStruiksma closed 2 years ago

JacobStruiksma commented 6 years ago

Check if argument is not null before checking its type

Fixes #189 .

Changes proposed in this pull request:

How to test this code:

Start-RSJob -ArgumentList 'x',$null -ScriptBlock {
    param(
        [string]$FirstInput,
        $DataInput
    )   
}

This should not show an error

Has been tested on (remove any that don't apply):