Skip to content

fetch-configlet: tweak style#322

Merged
ee7 merged 2 commits intoexercism:mainfrom
ee7:fetch-configlet-formatting
May 11, 2021
Merged

fetch-configlet: tweak style#322
ee7 merged 2 commits intoexercism:mainfrom
ee7:fetch-configlet-formatting

Conversation

@ee7
Copy link
Copy Markdown
Member

@ee7 ee7 commented May 8, 2021

This commit applies a preference for == over = when using [[.

From Google's Shell Style Guide:

For clarity, use == for equality rather than = even though both
work. The former encourages the use of [[ and the latter can be
confused with an assignment.

We also remove the space before a function's parentheses to be more
consistent with the style of our other function:

get_download_url()

ee7 added 2 commits May 9, 2021 00:31
This is more consistent with

```
get_download_url() {
```
From https://google.github.io/styleguide/shellguide.html#testing-strings

> For clarity, use `==` for equality rather than `=` even though both
> work. The former encourages the use of `[[` and the latter can be
> confused with an assignment.
@ee7 ee7 requested a review from ErikSchierboom as a code owner May 8, 2021 23:49
@ee7 ee7 merged commit 3b4b009 into exercism:main May 11, 2021
@ee7 ee7 deleted the fetch-configlet-formatting branch May 11, 2021 07:43
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.

2 participants