Skip to content

Commit

Permalink
Revert unnecessary whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhamley committed Jul 30, 2018
1 parent a22f940 commit 6933576
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bench/benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ function register(Benchmark) {
import Layout from './benchmarks/layout';
import LayoutDDS from './benchmarks/layout_dds';
import Paint from './benchmarks/paint';
import PaintStates from './benchmarks/paint_states';
import LayerBenchmarks from './benchmarks/layers';
import Load from './benchmarks/map_load';
import Validate from './benchmarks/style_validate';
import StyleLayerCreate from './benchmarks/style_layer_create';
import QueryPoint from './benchmarks/query_point';
import QueryBox from './benchmarks/query_box';
import ExpressionBenchmarks from './benchmarks/expressions';
import PaintStates from './benchmarks/paint_states';
import LayerBenchmarks from './benchmarks/layers';
import Load from './benchmarks/map_load';
import FilterCreate from './benchmarks/filter_create';
import FilterEvaluate from './benchmarks/filter_evaluate';

Expand Down
1 change: 1 addition & 0 deletions bench/benchmarks/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default class Layout extends Benchmark {

bench(getGlyphs: Function = (params, callback) => callback(null, this.glyphs[JSON.stringify(params)]),
getImages: Function = (params, callback) => callback(null, this.icons[JSON.stringify(params)])) {

const actor = {
send(action, params, callback) {
setTimeout(() => {
Expand Down
1 change: 1 addition & 0 deletions bench/benchmarks_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ class BenchmarksTable extends React.Component {

const benchmarks = [];
const filter = window.location.hash.substr(1);

let finished = false;
let promise = Promise.resolve();

Expand Down
1 change: 1 addition & 0 deletions bench/lib/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Benchmark {
this._elapsed = 0;
this._iterationsPerMeasurement = 1;
this._start = performance.now();

const bench = this.bench();
if (bench instanceof Promise) {
return bench.then(this._measureAsync);
Expand Down

0 comments on commit 6933576

Please sign in to comment.