Skip to content

Commit

Permalink
[housekeeping] inline
Browse files Browse the repository at this point in the history
  • Loading branch information
lispyclouds committed Aug 28, 2024
1 parent 74f126f commit 95a2790
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
*/

package main

Expand Down Expand Up @@ -36,9 +36,7 @@ func makeTar(src string, archiveName string) error {
}
defer tarfile.Close()

var fileWriter io.WriteCloser = tarfile

tw := tar.NewWriter(fileWriter)
tw := tar.NewWriter(tarfile)
defer tw.Close()

err = filepath.Walk(src, func(file string, fi os.FileInfo, err error) error {
Expand Down

0 comments on commit 95a2790

Please sign in to comment.