Skip to content

Commit

Permalink
refactor Resolve linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Mar 4, 2024
1 parent 483b51a commit d3676e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/globalconfig/global_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,11 @@ func ReadProjectList() error {
}

// Write an empty file - we have no known projects
err := os.WriteFile(GetProjectListPath(), make([]byte, 0), 0644)
// Whether there's an error or nil here we want to return
return err
} else {
return err
err = os.WriteFile(GetProjectListPath(), make([]byte, 0), 0644)
}

// Whether there's an error or nil here we want to return
return err
}

source, err := os.ReadFile(globalProjectsFile)
Expand Down

0 comments on commit d3676e3

Please sign in to comment.