WA Treasurer Mike Nahan committed a "minor" breach of the Ministerial Code of Conduct by failing to draw attention to his shareholdings before a related matter came before Cabinet, WA Premier Colin Barnett says.