autorest icon indicating copy to clipboard operation
autorest copied to clipboard

C# method generated for HTTP HEAD operation should return bool, not bool?

Open bitsforthought opened this issue 11 years ago • 1 comments

Returning bool? is inconvenient for the caller. HEAD will always tell you precisely whether a resource exists or not, so there is no reason for the return type of the method to be nullable.

bitsforthought avatar Nov 13 '15 22:11 bitsforthought

Relates to #375

stankovski avatar Nov 14 '15 01:11 stankovski