lint fix
This commit is contained in:
		
							parent
							
								
									bd77fb43c3
								
							
						
					
					
						commit
						5c53199434
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -12,15 +12,15 @@ const enabled = thunk(() => process.browser &&
 | 
			
		|||
 | 
			
		||||
const perf = process.browser && performance
 | 
			
		||||
 | 
			
		||||
export function mark(name) {
 | 
			
		||||
export function mark (name) {
 | 
			
		||||
  if (enabled()) {
 | 
			
		||||
    perf.mark(`start ${name}`)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function stop(name) {
 | 
			
		||||
export function stop (name) {
 | 
			
		||||
  if (enabled()) {
 | 
			
		||||
    perf.mark(`end ${name}`)
 | 
			
		||||
    perf.measure(name, `start ${name}`, `end ${name}`)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
export function thunk(fn) {
 | 
			
		||||
export function thunk (fn) {
 | 
			
		||||
  let value
 | 
			
		||||
  let called
 | 
			
		||||
  return () => {
 | 
			
		||||
| 
						 | 
				
			
			@ -8,4 +8,4 @@ export function thunk(fn) {
 | 
			
		|||
    }
 | 
			
		||||
    return value
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue