Skip to content

Commit 4173a8c

Browse files
committed
💄 Consistent indentation
1 parent 2db332e commit 4173a8c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/core/spec/fixtures/templates/ejs-codelabs/document.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/>
77
<meta name="theme-color" content="#4F7DC9" />
88
<meta charset="UTF-8" />
9-
<title><%= node.getDocument().getTitle()%></title>
9+
<title><%= node.getDocument().getTitle() %></title>
1010
<link
1111
rel="stylesheet"
1212
href="//fonts.googleapis.com/css?family=Source+Code+Pro:400|Roboto:400,300,400italic,500,700|Roboto+Mono"
@@ -31,10 +31,10 @@
3131
<body>
3232
<google-codelab
3333
codelab-gaid=""
34-
id="<%= node.getDocument().hasAttribute('id') ? node.getDocument().getAttribute('id'):Math.floor(Math.random() * 1000000)%>"
34+
id="<%= node.getDocument().hasAttribute('id') ? node.getDocument().getAttribute('id'):Math.floor(Math.random() * 1000000) %>"
3535
environment="web"
36-
feedback-link="<%=node.getDocument().getAttribute('feedback-link')%>"
37-
title="<%=node.getDocument().getTitle() %>"
36+
feedback-link="<%= node.getDocument().getAttribute('feedback-link') %>"
37+
title="<%= node.getDocument().getTitle() %>"
3838
>
3939
<%- node.getContent() %>
4040
</google-codelab>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports.attributeIfSet = (attName, attValue) => {
22
if (attName && attValue !== undefined && attValue.trim().length > 0) {
3-
return attName.trim() + '="' + attValue.trim() + '"'
3+
return `${attName.trim()}="${attValue.trim()}"`
44
}
5-
}
5+
}

0 commit comments

Comments
 (0)