hunk.code_window:  *
    * @example
    * writeAndValidate(source, destinations, verify, onProgress, onFail, onFinish, onError)
    */
   const writeAndValidate = async (source, destinations, verify, onProgress, onFail) => {
     const innerSource = await source.getInnerSource()
     const { failures, bytesWritten } = await sdk.multiWrite.pipeSourceToDestinations(
       innerSource,
       destinations,
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit: const writeAndValidate = async (source, destinations, verify, trim, onProgress, onFail) => {
     let innerSource = await source.getInnerSource()
     if (trim && (await innerSource.canRead())) {
       innerSource = new sdk.sourceDestination.ConfiguredSource(
         innerSource,
         trim,
         // Create stream from file-disk (not source stream)
         true
       )
     }
  
hunk.file_path: lib/gui/modules/child-writer.js
hunk.type: replace
file: /*
   * Copyright 2018 resin.io
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  'use strict'
  
  /**
   * @module Etcher.Components.FlashResults
   */
  
  const angular = require('angular')
  const { react2angular } = require('react2angular')
  
  const MODULE_NAME = 'Etcher.Components.FlashResults'
  const FlashResults = angular.module(MODULE_NAME, [])
  
  FlashResults.component(
    'flashResults',
    react2angular(require('./flash-results.jsx'))
  )
  
  module.exports = MODULE_NAME
  