Fix typo and conditional statement for warnings

1 job for develop-warning_fix
in 58 minutes and 20 seconds, using 0 compute credits, and was queued for 1 second