Fixed linter errors
This commit is contained in:
parent
a8b1241898
commit
68867718af
@ -12,7 +12,7 @@ func (p Profile) SaveSession(api scraper.API) {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
os.WriteFile(p.ProfileDir+"/"+string(api.UserHandle+".session"), data, os.FileMode(0644))
|
err = os.WriteFile(p.ProfileDir+"/"+string(api.UserHandle+".session"), data, os.FileMode(0644))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
|
|
||||||
// Save and load an API session; it should come back the same
|
// Save and load an API session; it should come back the same
|
||||||
func TestSaveAndLoadAuthenticatedSession(t *testing.T) {
|
func TestSaveAndLoadAuthenticatedSession(t *testing.T) {
|
||||||
|
|
||||||
profile_path := "test_profiles/TestSession"
|
profile_path := "test_profiles/TestSession"
|
||||||
profile := create_or_load_profile(profile_path)
|
profile := create_or_load_profile(profile_path)
|
||||||
|
|
||||||
@ -40,5 +39,4 @@ func TestSaveAndLoadAuthenticatedSession(t *testing.T) {
|
|||||||
if diff := deep.Equal(api, new_api); diff != nil {
|
if diff := deep.Equal(api, new_api); diff != nil {
|
||||||
t.Error(diff)
|
t.Error(diff)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user