diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2024-09-17 12:06:06 +0200 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2024-09-17 12:06:06 +0200 |
| commit | 2e3417882ea380df0ff97619570fff0f0910346e (patch) | |
| tree | d779b3611f70fd88a22d4e2feb29abb6224ddc08 /imp.ha | |
| parent | efd875ef2a1839031e8306bef83ea279b23e47c4 (diff) | |
| download | imp-2e3417882ea380df0ff97619570fff0f0910346e.tar.gz | |
Useless use of strings::compare
Diffstat (limited to 'imp.ha')
| -rw-r--r-- | imp.ha | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |
