Octoprint GCODE script for job cancellation sidekick 747

Okay, I found this code (which I have not tested):

G91; Set to Relative position
G1 E-6 F300; retract the filament a bit before lifting the nozzle
G0 Z50; move z axis up 50
G1 Y150 F5000; move part out for inspection

from this post dated about 4 years ago Octoprint Filament Runout Sensor - #16 by eobie

I’m not sure why the mix of G0 and G1 commands after reading this: Linear Move | Marlin Firmware

Which says “Keep using G0 for non-print moves. It makes G-code more adaptable to lasers, engravers, etc.” maybe it is a don’t care in the context of octoprint?