mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-11 11:02:20 +00:00
Cleanup some implementations
This commit is contained in:
@@ -133,7 +133,7 @@ static bool tokenize_and_check(char *stmt, vector<vector<char *>> &arr) {
|
||||
|
||||
template <typename Func, typename ...Args>
|
||||
static void run_and_check(const Func &fn, const char *action, Args ...args) {
|
||||
if (fn(args...)) {
|
||||
if (!fn(args...)) {
|
||||
string s = "Error in: %s";
|
||||
for (int i = 0; i < sizeof...(args); ++i) s += " %s";
|
||||
s += "\n";
|
||||
|
||||
Reference in New Issue
Block a user