Fixed linter errors

This commit is contained in:
Jaeger Aquila 2023-01-14 17:56:02 -05:00
parent a8b1241898
commit 68867718af
2 changed files with 1 additions and 3 deletions

View File

@ -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)
} }

View File

@ -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)
} }
} }