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

Uses guard instead of if #3330

Closed
wants to merge 1 commit into from
Closed

Uses guard instead of if #3330

wants to merge 1 commit into from

Conversation

valeriyvan
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #3330 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3330   +/-   ##
=======================================
  Coverage   28.32%   28.32%           
=======================================
  Files         117      117           
  Lines       15669    15669           
  Branches      320      320           
=======================================
  Hits         4438     4438           
  Misses      11188    11188           
  Partials       43       43

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 695979e...12ac523. Read the comment docs.

@@ -99,7 +99,7 @@ class LineChart1ViewController: DemoBaseViewController {
}

override func updateChartData() {
if self.shouldHideData {
guard !self.shouldHideData else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if makes sense here, but should be

if shouldHideData {
    // Hide the data...
} else {
    // Show the data
}

@jjatie
Copy link
Collaborator

jjatie commented Mar 15, 2018

@valeriyvan take a look at my comment on #3327

@jjatie jjatie closed this Mar 15, 2018
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.

3 participants