Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 12:07:15 (10 years ago)
Author:
gkronber
Message:

#2109: minor code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Mappers/GenotypeToPhenotypeMapper.cs

    r10968 r10974  
    3434namespace HeuristicLab.Problems.GrammaticalEvolution {
    3535  /// <summary>
    36   /// GenotypeToPhenotypeMapper
     36  /// Abstract base class for GenotypeToPhenotypeMappers
    3737  /// </summary>
    3838  public abstract class GenotypeToPhenotypeMapper : IntegerVectorOperator, IGenotypeToPhenotypeMapper {
     
    6666
    6767      // no terminal node exists for the given parent node
    68       if (possibleSymbolsList.Count() < 1) return null;
     68      if (!possibleSymbolsList.Any()) return null;
    6969
    7070      var newNode = possibleSymbolsList.SelectRandom(random).CreateTreeNode();
Note: See TracChangeset for help on using the changeset viewer.