mirror of
https://github.com/goodhosts/hostsfile.git
synced 2026-04-27 07:25:53 +03:00
[PR #9] [MERGED] Fix ToRaw() method in hostlines #26
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hostsfile#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/goodhosts/hostsfile/pull/9
Author: @ShivalikRanaut
Created: 6/8/2020
Status: ✅ Merged
Merged: 6/8/2020
Merged by: @luthermonson
Base:
master← Head:master📝 Commits (1)
37bf539Fix ToRaw() method in hostlines📊 Changes
2 files changed (+20 additions, -0 deletions)
View changed files
📝
hosts_test.go(+16 -0)📝
hostsline.go(+4 -0)📄 Description
Each call to Flush() rewrites the hosts file with the content .
Earlier ToRaw() method used in Flush() to format lines before writing was ignoring comments.
Added check to include comments
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.