1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: remove space in front of ? and ! (#14366)

This commit is contained in:
Daniel Däschle
2022-05-13 05:56:21 +02:00
committed by GitHub
parent df029da942
commit d679146a80
324 changed files with 1865 additions and 1879 deletions

View File

@ -273,7 +273,7 @@ pub fn zip_folder(folder string, zip_file string, opt ZipFolderOptions) ? {
})
// open or create new zip
mut zip := open(zip_file, .no_compression, .write) ?
mut zip := open(zip_file, .no_compression, .write)?
// close zip
defer {
zip.close()
@ -296,10 +296,10 @@ pub fn zip_folder(folder string, zip_file string, opt ZipFolderOptions) ? {
zip_file_entry += '/' // Tells the implementation that the entry is a directory
}
// add file or directory (ends with "/") to zip
zip.open_entry(zip_file_entry) ?
zip.open_entry(zip_file_entry)?
if !is_dir {
file_as_byte := os.read_bytes(file) ?
zip.write_entry(file_as_byte) ?
file_as_byte := os.read_bytes(file)?
zip.write_entry(file_as_byte)?
}
zip.close_entry()
}