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

Small tweaks to reduce warnings. #3562

Merged
merged 1 commit into from Jun 15, 2016
Merged

Small tweaks to reduce warnings. #3562

merged 1 commit into from Jun 15, 2016

Conversation

powdercloud
Copy link
Contributor

[18:02:32] extensions/amp-analytics/0.1/instrumentation.js:236: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
runOrSchedule_(fn) {
^
0 error(s), 1 warning(s)

[18:04:30] third_party/mustache/mustache.js:217: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
} else if (type === '=') {
^
0 error(s), 1 warning(s)

[18:05:29] extensions/amp-access/0.1/access-expr-impl.js:92: WARNING - If this if/for/while really shouldn't have a body, use {}
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,4],$V2=[1,18],$V3=[1,13],$V4=[1,14],$V5=[1,15],$V6=[1,16],$V7=[1,17],$V8=[1,20],$V9=[1,21],$Va=[5,6,7,10],$Vb=[5,6,7,10,15,16,17,18,19,20,21],$Vc=[5,6,7,10,15,16,17,18,19,20,21,25];
^
extensions/amp-access/0.1/access-expr-impl.js:316: WARNING - unreachable code
return true;
^
0 error(s), 2 warning(s)

[18:02:32] extensions/amp-analytics/0.1/instrumentation.js:236: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
  runOrSchedule_(fn) {
  ^
0 error(s), 1 warning(s)

[18:04:30] third_party/mustache/mustache.js:217: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
      } else if (type === '=') {
             ^
0 error(s), 1 warning(s)

[18:05:29] extensions/amp-access/0.1/access-expr-impl.js:92: WARNING - If this if/for/while really shouldn't have a body, use {}
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,4],$V2=[1,18],$V3=[1,13],$V4=[1,14],$V5=[1,15],$V6=[1,16],$V7=[1,17],$V8=[1,20],$V9=[1,21],$Va=[5,6,7,10],$Vb=[5,6,7,10,15,16,17,18,19,20,21],$Vc=[5,6,7,10,15,16,17,18,19,20,21,25];
                                                             ^
extensions/amp-access/0.1/access-expr-impl.js:316: WARNING - unreachable code
    return true;
    ^
0 error(s), 2 warning(s)
@dvoytenko
Copy link
Contributor

LGTM

@cramforce
Copy link
Member

Tx

@cramforce cramforce merged commit f1c24d6 into ampproject:master Jun 15, 2016
@powdercloud powdercloud deleted the tweaks-to-reduce-warnings branch July 20, 2016 23:47
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