mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 04:16:56 +08:00
MNT: Remove never attained return case under gray2rgb
This commit is contained in:
@@ -768,8 +768,6 @@ def gray2rgb(image, alpha=None):
|
||||
else:
|
||||
return np.concatenate(3 * (image,), axis=-1)
|
||||
|
||||
return image
|
||||
|
||||
else:
|
||||
raise ValueError("Input image expected to be RGB, RGBA or gray.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user