From 2e3417882ea380df0ff97619570fff0f0910346e Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Tue, 17 Sep 2024 12:06:06 +0200 Subject: Useless use of strings::compare --- imp.ha | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imp.ha b/imp.ha index b055cd5..d75850d 100644 --- a/imp.ha +++ b/imp.ha @@ -280,13 +280,13 @@ fn setfieldaccount(acc: *account, key: str, val: str) void = { val = strings::trim(val, '"'); }; - if (strings::compare(key, "user") == 0) { + if (key == "user") { acc.user = val; - } else if (strings::compare(key, "pass") == 0) { + } else if (key == "pass") { acc.pass = val; - } else if (strings::compare(key, "notes") == 0) { + } else if (key == "notes") { acc.notes = val; - } else if (strings::compare(key, "match") == 0) { + } else if (key == "match") { acc.url = val; } else { free(&val); -- cgit v1.2.3