cli icon indicating copy to clipboard operation
cli copied to clipboard

Fix runtime panic

Open Integralist opened this issue 3 years ago • 1 comments

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.

Integralist avatar Oct 18 '22 20:10 Integralist

I feel the remove redundant fields/objects change should be done separately but either way looks good to me.

fgsch avatar Oct 18 '22 20:10 fgsch