cli
cli copied to clipboard
Fix runtime panic
Running fastly with no arguments now triggers a runtime panic.
This wasn't visible until https://github.com/fastly/cli/pull/672 was landed. The logic bug was already there, but the recent merge meant the control flow was able to reach that portion of the code that was attempting to index an empty list.
I feel the remove redundant fields/objects change should be done separately but either way looks good to me.