summaryrefslogtreecommitdiff
path: root/imp.ha
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2024-09-17 12:06:06 +0200
committerJulian Hurst <julian.hurst@digdash.com>2024-09-17 12:06:06 +0200
commit2e3417882ea380df0ff97619570fff0f0910346e (patch)
treed779b3611f70fd88a22d4e2feb29abb6224ddc08 /imp.ha
parentefd875ef2a1839031e8306bef83ea279b23e47c4 (diff)
downloadimp-2e3417882ea380df0ff97619570fff0f0910346e.tar.gz
Useless use of strings::compare
Diffstat (limited to 'imp.ha')
-rw-r--r--imp.ha8
1 files 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);