Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav-malani committed Mar 23, 2023
1 parent d7c3daa commit 0e6f795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion enterprise/suppress-user/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func seederSource(endpoint string) (io.Reader, error) {
if err != nil {
return nil, fmt.Errorf("could not perform request: %w", err)
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("unexpected status code: %d", resp.StatusCode)
Expand Down Expand Up @@ -108,7 +109,7 @@ func (m *Factory) Setup(ctx context.Context, backendConfig backendconfig.Backend
rruntime.Go(func() {
syncer.SyncLoop(subCtx)
err = latestRepo.Stop()

defer LatestSyncCancel()
})

if config.GetBool("BackendConfig.Regulations.useBadgerDB", true) {
Expand Down
1 change: 0 additions & 1 deletion enterprise/suppress-user/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

const (
namespaceID = "spaghetti"
tokenKey = "__token__"
)

func TestSuppressionSetup(t *testing.T) {
Expand Down

0 comments on commit 0e6f795

Please sign in to comment.