snap_service (SNAP_SERVICE_NAME) is passed around everywhere to refer to the actual service running in the snap. This isn't required, because the snap has a single service, and omitting the service with the snap client methods will manage all available services for the snap.
So we can remove some code by removing SNAP_SERVICE_NAME and snap_service from the SnapService class.
snap_service
(SNAP_SERVICE_NAME
) is passed around everywhere to refer to the actual service running in the snap. This isn't required, because the snap has a single service, and omitting the service with the snap client methods will manage all available services for the snap.So we can remove some code by removing SNAP_SERVICE_NAME and
snap_service
from the SnapService class.