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

Removed syscall package #13

Merged
merged 1 commit into from
Dec 22, 2017
Merged

Removed syscall package #13

merged 1 commit into from
Dec 22, 2017

Conversation

levrik
Copy link
Contributor

@levrik levrik commented Dec 13, 2017

It should not be used directly anymore. See https://golang.org/pkg/syscall

config/config.go Outdated
// if mandatory but not found add them to error list
if found == false && parameter.Mandatory == true {
if envValue == "" && parameter.Mandatory == true {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can not test env value for empty string because this might be a valid value, e.g. empty passwords. Please use os.LookupEnv() above on Line 61.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

config/config.go Outdated
failedParameters = append(failedParameters, parameter)
continue
}

// Use default value if environment parameter is not set
if found == false && parameter.Mandatory == false {
if envValue == "" && parameter.Mandatory == false {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as on line 63

It should not be used directly anymore. See https://golang.org/pkg/syscall
@GitCop
Copy link

GitCop commented Dec 22, 2017

There were the following issues with your Pull Request

  • Commit: 311d9e7
  • Your commit message body contains a line that is longer than 72 characters
  • Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/microdevs/missy


This message was auto-generated by https://gitcop.com

@microdevs microdevs deleted a comment from GitCop Dec 22, 2017
@levrik levrik merged commit 72ba850 into microdevs:master Dec 22, 2017
@levrik levrik deleted the remove-syscall branch December 22, 2017 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants