Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/asset/cluster: Drop redundant os.TempDir() #492

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

wking
Copy link
Member

@wking wking commented Oct 19, 2018

From the Go docs:

If dir is the empty string, TempDir uses the default directory for temporary files (see os.TempDir).

so there's no point in us calling TempDir() directly.

The explicit call is from 408c066 (#319).

From [1]:

  If dir is the empty string, TempDir uses the default directory for
  temporary files (see os.TempDir).

so there's no point in us calling TempDir() directly.

The explicit call is from 408c066 (asset/cluster: Invoke terraform in
a temp dir, 2018-09-24, openshift#319).

[1]: https://golang.org/pkg/io/ioutil/#TempDir
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 19, 2018
@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 19, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit bf0fa6d into openshift:master Oct 19, 2018
@wking wking deleted the redundant-tempdir branch October 19, 2018 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants