std icon indicating copy to clipboard operation
std copied to clipboard

Enhance conditions

Open peter279k opened this issue 7 years ago • 1 comments

Changed log

  • To reduce nested condition, using the ?: operator to do that.
  • Using the ?? syntax to reduce conditions.
  • Using the error Exception first to enhance condition logic.

peter279k avatar Dec 01 '18 07:12 peter279k

Coverage Status

Coverage decreased (-0.1%) to 94.427% when pulling 7fee5acc204f48619ecfa85f24791e537414acad on peter279k:enhance_condition into b8acd4b5e3dc7b11fb9dd217e5fd3221e110d574 on brick:master.

coveralls avatar Dec 01 '18 07:12 coveralls