mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor: format parse browsing data
This commit is contained in:
@@ -25,7 +25,7 @@ type Source interface {
|
||||
|
||||
Name() string
|
||||
|
||||
Length() int
|
||||
Len() int
|
||||
}
|
||||
|
||||
func New(items []item.Item) *Data {
|
||||
@@ -49,7 +49,7 @@ func (d *Data) Output(dir, browserName, flag string) {
|
||||
output := newOutPutter(flag)
|
||||
|
||||
for _, source := range d.sources {
|
||||
if source.Length() == 0 {
|
||||
if source.Len() == 0 {
|
||||
// if the length of the export data is 0, then it is not necessary to output
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user