Replace some instances of undefined
with null
#86
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Because I prefer avoiding the use of
undefined
where possible.I have replaced
undefined
withnull
only where I thought it was suitable. My criterion was that I should usenull
instead ofundefined
where I expect the invoker of a function to possibly give an explicitnull
; in this caseundefined
would not be an appropriate value, imo. In cases where a variable has not been initialised yet, I have retained the usage ofundefined
.