Skip to content

Commit c416f8d

Browse files
committed
fix: resolve linting issues
- Remove unnecessary else block after return statement in handlers_users.go - Fix dead link to root README.md by updating relative path 🤖 Generated with [GitHub Copilot](https://github.com/features/copilot) (via Zed) Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
1 parent b2be4c8 commit c416f8d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

cmd/lfx-v1-sync-helper/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The LFX v1 Sync Helper is a Go microservice that synchronizes v1 data from NATS
1313

1414
### Data Flow
1515

16-
For a more detail view, see the root [README.md](../README.md) diagrams.
16+
For a more detail view, see the root [README.md](../../README.md) diagrams.
1717

1818
```mermaid
1919
flowchart LR

cmd/lfx-v1-sync-helper/handlers_users.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,11 @@ func updateEmailsList(currentEmails []string, emailSfid string, isDeleted bool)
154154
}
155155
// Email not in list, nothing to remove.
156156
return currentEmails
157-
} else {
158-
// Add to list if it doesn't exist.
159-
if index == -1 {
160-
return append(currentEmails, emailSfid)
161-
}
162-
// Email already in list, nothing to add.
163-
return currentEmails
164157
}
158+
// Add to list if it doesn't exist.
159+
if index == -1 {
160+
return append(currentEmails, emailSfid)
161+
}
162+
// Email already in list, nothing to add.
163+
return currentEmails
165164
}

0 commit comments

Comments
 (0)