From ca1ddb1bbd8c019b65485b1c5447019617bcc998 Mon Sep 17 00:00:00 2001 From: Jan Lemmer <jan.lemmer@fst.tu-darmstadt.de> Date: Thu, 10 Feb 2022 09:41:01 +0100 Subject: [PATCH] simplify mustBeDataPath --- +PlotID/Publish.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 9c845ed..2e59623 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -315,12 +315,8 @@ function mustBeDataPath(DataPaths) if ~iscell(DataPaths) DataPaths = {DataPaths}; end - tf = zeros(1,numel(DataPaths)); - - for i=1:numel(DataPaths) - tf(i) = ~isfile(DataPaths{i}); - end + tf = ~isfile(DataPaths); if any(tf) eidType = 'mustBeDataPath:notaValidFilePath'; msgType = 'DataPaths must contain file-path(s)'; -- GitLab