Skip to content

Conversation

@weakish
Copy link
Contributor

@weakish weakish commented Jun 17, 2019

this.get('createdAt') itself evaluates to
this.createdAt,
thus this.createdAt || this.get('createdAt') is unnecessary.
The same applies to getUpdatedAt.

`this.get('createdAt')` itself evaluates to
`this.createdAt`,
thus `this.createdAt || this.get('createdAt')` is unnecessary.
The same applies to `getUpdatedAt`.
@weakish weakish requested a review from leeyeh June 17, 2019 09:59
@codecov-io
Copy link

codecov-io commented Jun 17, 2019

Codecov Report

Merging #568 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #568   +/-   ##
=======================================
  Coverage   68.86%   68.86%           
=======================================
  Files          37       37           
  Lines        3209     3209           
=======================================
  Hits         2210     2210           
  Misses        999      999
Impacted Files Coverage Δ
src/object.js 84.66% <0%> (ø) ⬆️

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 bb7907e...1097547. Read the comment docs.

@leeyeh leeyeh merged commit b2939cd into leancloud:master Jun 17, 2019
@weakish weakish deleted the simplify-getCreatedUpdatedAt branch July 17, 2019 09:57
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