summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.BuildTasks/PathSegment.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-01-29 14:32:45 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-01-29 14:32:45 -0800
commit5fec515095ee10b522f414a03e78f282aaf520dc (patch)
tree204c75486639c23cdda2ef38b34d7e5050a1a2e3 /src/DotNetOpenAuth.BuildTasks/PathSegment.cs
parentf1a4155398635a4fd9f485eec817152627682704 (diff)
parent8f4165ee515728aca3faaa26e8354a40612e85e4 (diff)
downloadDotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.zip
DotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.tar.gz
DotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.tar.bz2
Merge branch 'splitDlls'.
DNOA now builds and (in some cases) ships as many distinct assemblies.
Diffstat (limited to 'src/DotNetOpenAuth.BuildTasks/PathSegment.cs')
-rw-r--r--src/DotNetOpenAuth.BuildTasks/PathSegment.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.BuildTasks/PathSegment.cs b/src/DotNetOpenAuth.BuildTasks/PathSegment.cs
index 1f17b5e..9179c82 100644
--- a/src/DotNetOpenAuth.BuildTasks/PathSegment.cs
+++ b/src/DotNetOpenAuth.BuildTasks/PathSegment.cs
@@ -292,12 +292,9 @@ namespace DotNetOpenAuth.BuildTasks {
if (match == null) {
match = new PathSegment(segments[segmentIndex], this);
this.Children.Add(match);
- if (segments.Length == segmentIndex + 1) {
- return match;
- }
}
- return match.Add(segments, segmentIndex + 1);
+ return segments.Length == segmentIndex + 1 ? match : match.Add(segments, segmentIndex + 1);
}
private PathSegment FindByOriginalPath(string[] segments, int segmentIndex) {