Skip to content

Commit 7ec1df9

Browse files
Ko van der SlootKo van der Sloot
authored andcommitted
small code refactoring
1 parent b43a665 commit 7ec1df9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/StringOps.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,11 @@ namespace Timbl {
146146
if ( pos == string::npos ){
147147
result += filename;
148148
}
149+
else if ( keep_origpath ){
150+
result += filename;
151+
}
149152
else {
150-
if ( keep_origpath ){
151-
result += filename;
152-
}
153-
else {
154-
result += filename.substr( pos+1 );
155-
}
153+
result += filename.substr( pos+1 );
156154
}
157155
return result;
158156
}

0 commit comments

Comments
 (0)