Skip to content

Commit

Permalink
Fix style: space between if and ()
Browse files Browse the repository at this point in the history
  • Loading branch information
rochars committed Jul 11, 2018
1 parent 0141c0c commit 4763f61
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions dist/wavefile.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,7 @@ class WaveFile {
this.io = new BufferIO();
// Load a file from the buffer if one was passed
// when creating the object
if(bytes) {
if (bytes) {
this.fromBuffer(bytes);
}
}
Expand Down Expand Up @@ -3569,7 +3569,7 @@ class WaveFile {
if (this.fmt.sampleRate !== 8000) {
throw new Error(
'Only 8000 Hz files can be compressed as IMA-ADPCM.');
} else if(this.fmt.numChannels !== 1) {
} else if (this.fmt.numChannels !== 1) {
throw new Error(
'Only mono files can be compressed as IMA-ADPCM.');
} else {
Expand Down Expand Up @@ -3931,7 +3931,7 @@ class WaveFile {
*/
getAdtlChunk_() {
for (let i=0; i<this.LIST.length; i++) {
if(this.LIST[i].format == 'adtl') {
if (this.LIST[i].format == 'adtl') {
return i;
}
}
Expand Down Expand Up @@ -3973,7 +3973,7 @@ class WaveFile {
fixTagName_(tag) {
if (tag.constructor !== String) {
throw new Error('Invalid tag name.');
} else if(tag.length < 4) {
} else if (tag.length < 4) {
for (let i=0; i<4-tag.length; i++) {
tag += ' ';
}
Expand Down Expand Up @@ -4011,7 +4011,7 @@ class WaveFile {
assureUncompressed_() {
if (this.bitDepth == '8a') {
this.fromALaw();
} else if(this.bitDepth == '8m') {
} else if (this.bitDepth == '8m') {
this.fromMuLaw();
} else if (this.bitDepth == '4') {
this.fromIMAADPCM();
Expand Down
10 changes: 5 additions & 5 deletions dist/wavefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@ class WaveFile {
this.io = new BufferIO();
// Load a file from the buffer if one was passed
// when creating the object
if(bytes) {
if (bytes) {
this.fromBuffer(bytes);
}
}
Expand Down Expand Up @@ -3567,7 +3567,7 @@ class WaveFile {
if (this.fmt.sampleRate !== 8000) {
throw new Error(
'Only 8000 Hz files can be compressed as IMA-ADPCM.');
} else if(this.fmt.numChannels !== 1) {
} else if (this.fmt.numChannels !== 1) {
throw new Error(
'Only mono files can be compressed as IMA-ADPCM.');
} else {
Expand Down Expand Up @@ -3929,7 +3929,7 @@ class WaveFile {
*/
getAdtlChunk_() {
for (let i=0; i<this.LIST.length; i++) {
if(this.LIST[i].format == 'adtl') {
if (this.LIST[i].format == 'adtl') {
return i;
}
}
Expand Down Expand Up @@ -3971,7 +3971,7 @@ class WaveFile {
fixTagName_(tag) {
if (tag.constructor !== String) {
throw new Error('Invalid tag name.');
} else if(tag.length < 4) {
} else if (tag.length < 4) {
for (let i=0; i<4-tag.length; i++) {
tag += ' ';
}
Expand Down Expand Up @@ -4009,7 +4009,7 @@ class WaveFile {
assureUncompressed_() {
if (this.bitDepth == '8a') {
this.fromALaw();
} else if(this.bitDepth == '8m') {
} else if (this.bitDepth == '8m') {
this.fromMuLaw();
} else if (this.bitDepth == '4') {
this.fromIMAADPCM();
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ <h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 21:58:20 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 22:13:32 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
12 changes: 6 additions & 6 deletions docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ <h1 class="page-title">index.js</h1>
this.io = new BufferIO();
// Load a file from the buffer if one was passed
// when creating the object
if(bytes) {
if (bytes) {
this.fromBuffer(bytes);
}
}
Expand Down Expand Up @@ -499,7 +499,7 @@ <h1 class="page-title">index.js</h1>
if (this.fmt.sampleRate !== 8000) {
throw new Error(
'Only 8000 Hz files can be compressed as IMA-ADPCM.');
} else if(this.fmt.numChannels !== 1) {
} else if (this.fmt.numChannels !== 1) {
throw new Error(
'Only mono files can be compressed as IMA-ADPCM.');
} else {
Expand Down Expand Up @@ -861,7 +861,7 @@ <h1 class="page-title">index.js</h1>
*/
getAdtlChunk_() {
for (let i=0; i&lt;this.LIST.length; i++) {
if(this.LIST[i].format == 'adtl') {
if (this.LIST[i].format == 'adtl') {
return i;
}
}
Expand Down Expand Up @@ -903,7 +903,7 @@ <h1 class="page-title">index.js</h1>
fixTagName_(tag) {
if (tag.constructor !== String) {
throw new Error('Invalid tag name.');
} else if(tag.length &lt; 4) {
} else if (tag.length &lt; 4) {
for (let i=0; i&lt;4-tag.length; i++) {
tag += ' ';
}
Expand Down Expand Up @@ -941,7 +941,7 @@ <h1 class="page-title">index.js</h1>
assureUncompressed_() {
if (this.bitDepth == '8a') {
this.fromALaw();
} else if(this.bitDepth == '8m') {
} else if (this.bitDepth == '8m') {
this.fromMuLaw();
} else if (this.bitDepth == '4') {
this.fromIMAADPCM();
Expand Down Expand Up @@ -1009,7 +1009,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 21:58:20 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 22:13:32 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-wavefile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4443,7 +4443,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 21:58:20 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Jul 10 2018 22:13:32 GMT-0300 (Hora oficial do Brasil) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default class WaveFile {
this.io = new BufferIO();
// Load a file from the buffer if one was passed
// when creating the object
if(bytes) {
if (bytes) {
this.fromBuffer(bytes);
}
}
Expand Down Expand Up @@ -460,7 +460,7 @@ export default class WaveFile {
if (this.fmt.sampleRate !== 8000) {
throw new Error(
'Only 8000 Hz files can be compressed as IMA-ADPCM.');
} else if(this.fmt.numChannels !== 1) {
} else if (this.fmt.numChannels !== 1) {
throw new Error(
'Only mono files can be compressed as IMA-ADPCM.');
} else {
Expand Down Expand Up @@ -822,7 +822,7 @@ export default class WaveFile {
*/
getAdtlChunk_() {
for (let i=0; i<this.LIST.length; i++) {
if(this.LIST[i].format == 'adtl') {
if (this.LIST[i].format == 'adtl') {
return i;
}
}
Expand Down Expand Up @@ -864,7 +864,7 @@ export default class WaveFile {
fixTagName_(tag) {
if (tag.constructor !== String) {
throw new Error('Invalid tag name.');
} else if(tag.length < 4) {
} else if (tag.length < 4) {
for (let i=0; i<4-tag.length; i++) {
tag += ' ';
}
Expand Down Expand Up @@ -902,7 +902,7 @@ export default class WaveFile {
assureUncompressed_() {
if (this.bitDepth == '8a') {
this.fromALaw();
} else if(this.bitDepth == '8m') {
} else if (this.bitDepth == '8m') {
this.fromMuLaw();
} else if (this.bitDepth == '4') {
this.fromIMAADPCM();
Expand Down

0 comments on commit 4763f61

Please sign in to comment.