Skip to content

Commit

Permalink
Merge pull request #45 from vince-riv/fix/remove-file-write
Browse files Browse the repository at this point in the history
fix: remove write to app-list.json (left from devel)
  • Loading branch information
vrivellino authored Jan 25, 2024
2 parents 7fc7501 + f7b85d3 commit 19ac0a1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/argocd/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package argocd

import (
"context"
"encoding/json"
"net/url"
"os"

Expand Down Expand Up @@ -62,16 +61,6 @@ func listApplications(ctx context.Context) (*v1alpha1.ApplicationList, error) {
log.Error().Err(err).Msg("Application List failed")
return nil, err
}
content, err := json.Marshal(apps)
if err != nil {
log.Error().Err(err).Msg("json.Marshal failed")
return apps, nil
}
err = os.WriteFile("app-list.json", content, 0644)
if err != nil {
log.Error().Err(err).Msg("os.WriteFile() failed")
return apps, nil
}
return apps, nil
}

Expand Down

0 comments on commit 19ac0a1

Please sign in to comment.