-func WriteStateIfChanged(path string, state *State) error {
- // State hasn't changed, nothing to do
- if reflect.DeepEqual(state.LastModified, state.origLastModified) {
- return nil
- }
+func WriteState(path string, state *State) error {
+ // Update the state file even if nothing has changed to provide a
+ // simple way to check if nsscash ran successfully (the state is only
+ // updated if there were no errors)