Skip to content

Commit c26f550

Browse files
committed
refac(algorithm): reorder includes and simplify conditional statement
1 parent 68dc4d7 commit c26f550

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

include/stdsharp/algorithm/algorithm.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

33
#include "../compare/compare.h"
4-
#include "../functional/operations.h"
54
#include "../functional/invoke.h"
5+
#include "../functional/operations.h"
66

77
#include <gsl/gsl>
88

@@ -87,11 +87,7 @@ namespace stdsharp
8787
return;
8888
}
8989

90-
if(pre != next && is_neq(next))
91-
{
92-
pre = ordering::unordered;
93-
return;
94-
}
90+
if(pre != next && is_neq(next)) pre = ordering::unordered;
9591
};
9692

9793
public:

0 commit comments

Comments
 (0)