| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b172f6b commit 0dec568
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -242,15 +242,6 @@ async function write(handle, buffer, offset, length, position) { | |||
| 242 | 242 | ||
| 243 | 243 | if (typeof buffer !== 'string') | |
| 244 | 244 | buffer += ''; | |
| 245 | - if (typeof position !== 'function') { | ||
| 246 | - if (typeof offset === 'function') { | ||
| 247 | - position = offset; | ||
| 248 | - offset = null; | ||
| 249 | - } else { | ||
| 250 | - position = length; | ||
| 251 | - } | ||
| 252 | - length = 'utf8'; | ||
| 253 | - } | ||
| 254 | 245 | const bytesWritten = (await binding.writeString(handle.fd, buffer, offset, | |
| 255 | 246 | length, kUsePromises)) || 0; | |
| 256 | 247 | return { bytesWritten, buffer }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments