@@ -183,12 +183,18 @@ public sealed class FolderDiffService
183183 /// <exception cref="ArgumentNullException">config または progressReporter または oldFolderAbsolutePath または newFolderAbsolutePath または reportsFolderAbsolutePath が null の場合。</exception>
184184 public FolderDiffService ( ConfigSettings config , ProgressReportService progressReporter , string oldFolderAbsolutePath , string newFolderAbsolutePath , string reportsFolderAbsolutePath )
185185 {
186- _config = config ?? throw new ArgumentNullException ( nameof ( config ) ) ;
187- _progressReporter = progressReporter ?? throw new ArgumentNullException ( nameof ( progressReporter ) ) ;
186+ ArgumentNullException . ThrowIfNull ( config ) ;
187+ ArgumentNullException . ThrowIfNull ( progressReporter ) ;
188+ ArgumentNullException . ThrowIfNull ( oldFolderAbsolutePath ) ;
189+ ArgumentNullException . ThrowIfNull ( newFolderAbsolutePath ) ;
190+ ArgumentNullException . ThrowIfNull ( reportsFolderAbsolutePath ) ;
191+
192+ _config = config ;
193+ _progressReporter = progressReporter ;
188194 _progressReporter . SetLabel ( SPINNER_LABEL_FOLDER_DIFF ) ;
189- _oldFolderAbsolutePath = oldFolderAbsolutePath ?? throw new ArgumentNullException ( nameof ( oldFolderAbsolutePath ) ) ;
190- _newFolderAbsolutePath = newFolderAbsolutePath ?? throw new ArgumentNullException ( nameof ( newFolderAbsolutePath ) ) ;
191- _reportsFolderAbsolutePath = reportsFolderAbsolutePath ?? throw new ArgumentNullException ( nameof ( reportsFolderAbsolutePath ) ) ;
195+ _oldFolderAbsolutePath = oldFolderAbsolutePath ;
196+ _newFolderAbsolutePath = newFolderAbsolutePath ;
197+ _reportsFolderAbsolutePath = reportsFolderAbsolutePath ;
192198 _ilOutputFolderAbsolutePath = Path . Combine ( _reportsFolderAbsolutePath , IL_FOLDER_NAME ) ;
193199 _ilOldFolderAbsolutePath = Path . Combine ( _ilOutputFolderAbsolutePath , IL_OLD_SUB_DIR ) ;
194200 _ilNewFolderAbsolutePath = Path . Combine ( _ilOutputFolderAbsolutePath , IL_NEW_SUB_DIR ) ;
0 commit comments