Skip to content

Commit

Permalink
commented code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajan Joshi committed Feb 21, 2020
1 parent 7bcff97 commit d9b884a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions beater/pubsubbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ func createPubsubClient(config *config.Config) (*pubsub.Client, error) {
options := []option.ClientOption{option.WithUserAgent(userAgent)}
if config.CredentialsFile != "" {
c, err := ioutil.ReadFile(config.CredentialsFile) // just pass the file name
fmt.Println("Error : ", err)
if err != nil {
return nil, fmt.Errorf("fail to encrypted credentials: %v", err)
}
Expand All @@ -187,7 +186,6 @@ func createPubsubClient(config *config.Config) (*pubsub.Client, error) {
if err != nil {
return nil, errors.New("error decrypting Content")
}
fmt.Println("Data : ", decryptedContent)
tempFile.WriteString(decryptedContent)
options = append(options, option.WithCredentialsFile(tempFile.Name()))

Expand Down

0 comments on commit d9b884a

Please sign in to comment.