From a0bafbcb954a654b281d13ea80455ece48675b65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 15 Dec 2023 15:00:28 +0100
Subject: [PATCH] Remove duplicate case value

Detected by MATLAB Code Analyzer app.
---
 license.txt                            | 2 +-
 matlab/utilities/graphics/colorspace.m | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/license.txt b/license.txt
index 73fb4bc4da..7372640a2a 100644
--- a/license.txt
+++ b/license.txt
@@ -242,7 +242,7 @@ License: BSD-2-clause
 
 Files: matlab/utilities/graphics/colorspace.m
 Copyright: 2005-2010 Pascal Getreuer
-           2017 Dynare Team
+           2017-2023 Dynare Team
 License: BSD-2-clause
 
 Files: examples/fs2000_data.m
diff --git a/matlab/utilities/graphics/colorspace.m b/matlab/utilities/graphics/colorspace.m
index f965ef6b9d..508094980b 100644
--- a/matlab/utilities/graphics/colorspace.m
+++ b/matlab/utilities/graphics/colorspace.m
@@ -82,7 +82,7 @@ function varargout = colorspace(Conversion,varargin)
 %  ("short").
 
 % Copyright © 2005-2010 Pascal Getreuer
-% Copyright © 2017 Dynare Team
+% Copyright © 2017-2023 Dynare Team
 %
 % Redistribution and use in source and binary forms, with or without
 % modification, are permitted provided that the following conditions are
@@ -203,7 +203,7 @@ switch Space
     Space = 'hsv';
   case {'hsl','hsi','hls'}
     Space = 'hsl';
-  case {'rgb','yuv','yiq','ydbdr','ycbcr','jpegycbcr','xyz','lab','luv','lch'}
+  case {'rgb','yuv','yiq','ydbdr','jpegycbcr','xyz','lab','luv','lch'}
     return
 end
 return
-- 
GitLab